Class 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 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