org.jboss.security.auth.callback
Class CallbackHandlerPolicyContextHandler
java.lang.Object
org.jboss.security.auth.callback.CallbackHandlerPolicyContextHandler
- All Implemented Interfaces:
- javax.security.jacc.PolicyContextHandler
public class CallbackHandlerPolicyContextHandler
- extends Object
- implements javax.security.jacc.PolicyContextHandler
A PolicyContextHandler implementation that allows a dynamic CallbackHandler to
be associated with the current context for use with authentication.
- Version:
- $Revision: 57203 $
- Author:
- Scott.Stark@jboss.org
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CALLBACK_HANDLER_KEY
public static final String CALLBACK_HANDLER_KEY
- See Also:
- Constant Field Values
CallbackHandlerPolicyContextHandler
public CallbackHandlerPolicyContextHandler()
setCallbackHandler
public static void setCallbackHandler(CallbackHandler bean)
getContext
public Object getContext(String key,
Object data)
throws javax.security.jacc.PolicyContextException
- Access the CallbackHandler policy context data.
- Specified by:
getContext
in interface javax.security.jacc.PolicyContextHandler
- Parameters:
key
- - "org.jboss.security.auth.spi.CallbackHandler"data
- currently unused
- Returns:
- The active CallbackHandler
- Throws:
javax.security.jacc.PolicyContextException
getKeys
public String[] getKeys()
throws javax.security.jacc.PolicyContextException
- Specified by:
getKeys
in interface javax.security.jacc.PolicyContextHandler
- Throws:
javax.security.jacc.PolicyContextException
supports
public boolean supports(String key)
throws javax.security.jacc.PolicyContextException
- Specified by:
supports
in interface javax.security.jacc.PolicyContextHandler
- Throws:
javax.security.jacc.PolicyContextException
Copyright © 2002 JBoss Group, LLC. All Rights Reserved.