org.jboss.security.auth.callback
Class CallbackHandlerPolicyContextHandler

java.lang.Object
  extended by 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

Field Summary
static String CALLBACK_HANDLER_KEY
           
 
Constructor Summary
CallbackHandlerPolicyContextHandler()
           
 
Method Summary
 Object getContext(String key, Object data)
          Access the CallbackHandler policy context data.
 String[] getKeys()
           
static void setCallbackHandler(CallbackHandler bean)
           
 boolean supports(String key)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CALLBACK_HANDLER_KEY

public static final String CALLBACK_HANDLER_KEY
See Also:
Constant Field Values
Constructor Detail

CallbackHandlerPolicyContextHandler

public CallbackHandlerPolicyContextHandler()
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:
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.