Class ElytronServerAuthContext

  • All Implemented Interfaces:
    javax.security.auth.message.config.ServerAuthContext, javax.security.auth.message.ServerAuth

    class ElytronServerAuthContext
    extends Object
    implements javax.security.auth.message.config.ServerAuthContext
    The WildFly Elytron implementation of ServerAuthContext.
    Author:
    Darran Lofthouse
    • Method Detail

      • validateRequest

        public javax.security.auth.message.AuthStatus validateRequest​(javax.security.auth.message.MessageInfo messageInfo,
                                                                      Subject clientSubject,
                                                                      Subject serviceSubject)
                                                               throws javax.security.auth.message.AuthException
        Specified by:
        validateRequest in interface javax.security.auth.message.ServerAuth
        Throws:
        javax.security.auth.message.AuthException
        See Also:
        ServerAuth.validateRequest(javax.security.auth.message.MessageInfo, javax.security.auth.Subject, javax.security.auth.Subject)
      • toIndex

        private static int toIndex​(javax.security.auth.message.AuthStatus authStatus)
      • secureResponse

        public javax.security.auth.message.AuthStatus secureResponse​(javax.security.auth.message.MessageInfo messageInfo,
                                                                     Subject serviceSubject)
                                                              throws javax.security.auth.message.AuthException
        Specified by:
        secureResponse in interface javax.security.auth.message.ServerAuth
        Throws:
        javax.security.auth.message.AuthException
        See Also:
        ServerAuth.secureResponse(javax.security.auth.message.MessageInfo, javax.security.auth.Subject)
      • 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
        Throws:
        javax.security.auth.message.AuthException
        See Also:
        ServerAuth.cleanSubject(javax.security.auth.message.MessageInfo, javax.security.auth.Subject)
      • initialise

        void initialise​(Subject serviceSubject,
                        CallbackHandler callbackHandler,
                        Map properties)
                 throws javax.security.auth.message.AuthException
        Throws:
        javax.security.auth.message.AuthException
      • testMessageInfo

        void testMessageInfo​(javax.security.auth.message.MessageInfo messageInfo)
                      throws IllegalArgumentException
        Test that the request and response messages in the supplied MessageInfo are compatible
        Parameters:
        messageInfo - the MessageInfo to test is compatible with the ServerAuthModule instances.
        Throws:
        IllegalArgumentException