Class DelegatingServerAuthModule

  • All Implemented Interfaces:
    javax.security.auth.message.module.ServerAuthModule, javax.security.auth.message.ServerAuth
    Direct Known Subclasses:
    HttpServletServerAuthModule

    public class DelegatingServerAuthModule
    extends AbstractServerAuthModule
    Server Auth Module that delegates work to a login context
    Since:
    Jul 25, 2007
    Version:
    $Revision$
    Author:
    Anil.Saldhana@redhat.com
    • Constructor Detail

      • DelegatingServerAuthModule

        public DelegatingServerAuthModule()
      • DelegatingServerAuthModule

        public DelegatingServerAuthModule​(String loginModuleStackHolderName)
    • Method Detail

      • getSupportedMessageTypes

        public Class[] getSupportedMessageTypes()
        Specified by:
        getSupportedMessageTypes in interface javax.security.auth.message.module.ServerAuthModule
        Overrides:
        getSupportedMessageTypes in class AbstractServerAuthModule
        See Also:
        ServerAuthModule.getSupportedMessageTypes()
      • cleanSubject

        public void cleanSubject​(javax.security.auth.message.MessageInfo messageInfo,
                                 Subject subject)
                          throws javax.security.auth.message.AuthException
        Specified by:
        cleanSubject in interface javax.security.auth.message.ServerAuth
        Overrides:
        cleanSubject in class AbstractServerAuthModule
        Throws:
        javax.security.auth.message.AuthException
      • secureResponse

        public javax.security.auth.message.AuthStatus secureResponse​(javax.security.auth.message.MessageInfo messageInfo,
                                                                     Subject arg1)
                                                              throws javax.security.auth.message.AuthException
        Throws:
        javax.security.auth.message.AuthException
      • validate

        protected boolean validate​(Subject clientSubject,
                                   javax.security.auth.message.MessageInfo messageInfo)
                            throws javax.security.auth.message.AuthException
        Description copied from class: AbstractServerAuthModule
        Subclasses have to implement this method to actually validate the subject
        Specified by:
        validate in class AbstractServerAuthModule
        Returns:
        Throws:
        javax.security.auth.message.AuthException