Package 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$
- Author:
- Scott.Stark@jboss.org
-
-
Constructor Summary
Constructors Constructor Description CallbackHandlerPolicyContextHandler()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectgetContext(String key, Object data)Access the CallbackHandler policy context data.String[]getKeys()static voidsetCallbackHandler(CallbackHandler bean)booleansupports(String key)
-
-
-
Method Detail
-
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:
getContextin interfacejavax.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:
getKeysin interfacejavax.security.jacc.PolicyContextHandler- Throws:
javax.security.jacc.PolicyContextException
-
supports
public boolean supports(String key) throws javax.security.jacc.PolicyContextException
- Specified by:
supportsin interfacejavax.security.jacc.PolicyContextHandler- Throws:
javax.security.jacc.PolicyContextException
-
-