net.sf.jguard.core.authentication.bindings
Interface AuthenticationBindings

All Known Subinterfaces:
StatefulAuthenticationBindings
All Known Implementing Classes:
AbstractAuthenticationBindings, AuthenticationBindingsWrapper, ImpersonationAuthenticationBindings, StatefulImpersonationAuthenticationBindings

public interface AuthenticationBindings

Authentication bindings with the underlying protocol and server technology used by the PolicyEnforcementPoint, specific to an AccessContext. Note that implementation of this interface DOES NOT authenticate any entity.

Since:
1.1
Author:
Charles Gay
See Also:
PolicyEnforcementPoint, AuthenticationServicePoint

Method Summary
 java.lang.Object getApplicationAttribute(java.lang.String key)
           
 AuthenticationBindingsFactory getAuthenticationBindingsFactory()
           
 AuthenticationUtils getAuthenticationUtils()
          extract from the AccessContext the AuthenticationUtils.
 javax.security.auth.callback.CallbackHandler getCallbackHandler()
          return a CallbackHandler bounded to the current AccessContext.
 AccessContext getContext()
           
 java.lang.String getInitApplicationAttribute(java.lang.String key)
          parameter defined for initialization purpose, reachable at an application scope.
 java.lang.Object getRequestAttribute(java.lang.String key)
           
 java.lang.String getScope()
           
 void process()
           
 void removeApplicationAttribute(java.lang.String key)
           
 void removeRequestAttribute(java.lang.String key)
           
 void setApplicationAttribute(java.lang.String key, java.lang.Object value)
           
 void setRequestAttribute(java.lang.String key, java.lang.Object value)
           
 

Method Detail

process

void process()

getCallbackHandler

javax.security.auth.callback.CallbackHandler getCallbackHandler()
return a CallbackHandler bounded to the current AccessContext.

Returns:

getContext

AccessContext getContext()

getAuthenticationUtils

AuthenticationUtils getAuthenticationUtils()
extract from the AccessContext the AuthenticationUtils. note that each AuthenticationUtils instance is related to a Subject, so different AuthenticationUtils coexist.It can be done because AccessContext is different among users, although if they share the same AuthenticationBindings instance: it implies that AuthenticationBindings is only the method to extract from AccessContext the AuthenticationUtils (and its underlying Subject).

Returns:

setRequestAttribute

void setRequestAttribute(java.lang.String key,
                         java.lang.Object value)

getRequestAttribute

java.lang.Object getRequestAttribute(java.lang.String key)

removeRequestAttribute

void removeRequestAttribute(java.lang.String key)

setApplicationAttribute

void setApplicationAttribute(java.lang.String key,
                             java.lang.Object value)

getApplicationAttribute

java.lang.Object getApplicationAttribute(java.lang.String key)

removeApplicationAttribute

void removeApplicationAttribute(java.lang.String key)

getInitApplicationAttribute

java.lang.String getInitApplicationAttribute(java.lang.String key)
parameter defined for initialization purpose, reachable at an application scope.

Parameters:
key -
Returns:
value as a String

getAuthenticationBindingsFactory

AuthenticationBindingsFactory getAuthenticationBindingsFactory()

getScope

java.lang.String getScope()


Copyright © 2004-2009. All Rights Reserved.