net.sf.jguard.core.authentication.bindings
Class AuthenticationBindingsWrapper

java.lang.Object
  extended by net.sf.jguard.core.authentication.bindings.AbstractAuthenticationBindings
      extended by net.sf.jguard.core.authentication.bindings.AuthenticationBindingsWrapper
All Implemented Interfaces:
AuthenticationBindings
Direct Known Subclasses:
ImpersonationAuthenticationBindings

public class AuthenticationBindingsWrapper
extends AbstractAuthenticationBindings
implements AuthenticationBindings

this class implements the Wrapper/decorator pattern to override some methods implemented by the internal AuthenticationBindings wrapped in the constructor.

Author:
Charles Gay

Field Summary
protected  AuthenticationBindings authNBindings
           
 
Fields inherited from class net.sf.jguard.core.authentication.bindings.AbstractAuthenticationBindings
authScheme, context, factory
 
Constructor Summary
AuthenticationBindingsWrapper(AuthenticationBindings authenticationBindings)
           
 
Method Summary
 java.lang.Object getApplicationAttribute(java.lang.String key)
           
 javax.security.auth.callback.CallbackHandler getCallbackHandler()
          return a CallbackHandler bounded to the current AccessContext.
 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)
           
 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)
           
 
Methods inherited from class net.sf.jguard.core.authentication.bindings.AbstractAuthenticationBindings
getAuthenticationBindingsFactory, getAuthenticationUtils, getContext, getScope
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.sf.jguard.core.authentication.bindings.AuthenticationBindings
getAuthenticationBindingsFactory, getAuthenticationUtils, getContext, getScope
 

Field Detail

authNBindings

protected AuthenticationBindings authNBindings
Constructor Detail

AuthenticationBindingsWrapper

public AuthenticationBindingsWrapper(AuthenticationBindings authenticationBindings)
Method Detail

getApplicationAttribute

public java.lang.Object getApplicationAttribute(java.lang.String key)
Specified by:
getApplicationAttribute in interface AuthenticationBindings

getCallbackHandler

public javax.security.auth.callback.CallbackHandler getCallbackHandler()
Description copied from interface: AuthenticationBindings
return a CallbackHandler bounded to the current AccessContext.

Specified by:
getCallbackHandler in interface AuthenticationBindings
Returns:

getRequestAttribute

public java.lang.Object getRequestAttribute(java.lang.String key)
Specified by:
getRequestAttribute in interface AuthenticationBindings

process

public void process()
Specified by:
process in interface AuthenticationBindings

setApplicationAttribute

public void setApplicationAttribute(java.lang.String key,
                                    java.lang.Object value)
Specified by:
setApplicationAttribute in interface AuthenticationBindings

setRequestAttribute

public void setRequestAttribute(java.lang.String key,
                                java.lang.Object value)
Specified by:
setRequestAttribute in interface AuthenticationBindings

removeApplicationAttribute

public void removeApplicationAttribute(java.lang.String key)
Specified by:
removeApplicationAttribute in interface AuthenticationBindings

removeRequestAttribute

public void removeRequestAttribute(java.lang.String key)
Specified by:
removeRequestAttribute in interface AuthenticationBindings

getInitApplicationAttribute

public java.lang.String getInitApplicationAttribute(java.lang.String key)
Description copied from interface: AuthenticationBindings
parameter defined for initialization purpose, reachable at an application scope.

Specified by:
getInitApplicationAttribute in interface AuthenticationBindings
Returns:
value as a String


Copyright © 2004-2009. All Rights Reserved.