SimpleServerAuthContext (Apache Tomcat 8.5.43 API Documentation)

org.apache.catalina.authenticator.jaspic

## Class SimpleServerAuthContext

- java.lang.Object
- - org.apache.catalina.authenticator.jaspic.SimpleServerAuthContext

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

      public class SimpleServerAuthContext
      extends java.lang.Object
      implements javax.security.auth.message.config.ServerAuthContext

  Basic implementation primarily intended for use when using third-party `ServerAuthModule` implementations that only provide the module. This implementation supports multiple modules and will treat the user as authenticated if any one module is able to authenticate the user.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `SimpleServerAuthContext(java.util.List<javax.security.auth.message.module.ServerAuthModule> modules)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `cleanSubject(javax.security.auth.message.MessageInfo messageInfo, javax.security.auth.Subject subject)`
    `javax.security.auth.message.AuthStatus` | `secureResponse(javax.security.auth.message.MessageInfo messageInfo, javax.security.auth.Subject serviceSubject)`
    `javax.security.auth.message.AuthStatus` | `validateRequest(javax.security.auth.message.MessageInfo messageInfo, javax.security.auth.Subject clientSubject, javax.security.auth.Subject serviceSubject)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### SimpleServerAuthContext

          public SimpleServerAuthContext(java.util.List<javax.security.auth.message.module.ServerAuthModule> modules)

  - ### Method Detail

    - #### validateRequest

          public javax.security.auth.message.AuthStatus validateRequest(javax.security.auth.message.MessageInfo messageInfo,
                                                               javax.security.auth.Subject clientSubject,
                                                               javax.security.auth.Subject serviceSubject)
                                                                 throws javax.security.auth.message.AuthException

      Specified by:
        `validateRequest` in interface `javax.security.auth.message.ServerAuth`
      Throws:
        `javax.security.auth.message.AuthException`

    - #### secureResponse

          public javax.security.auth.message.AuthStatus secureResponse(javax.security.auth.message.MessageInfo messageInfo,
                                                              javax.security.auth.Subject serviceSubject)
                                                                throws javax.security.auth.message.AuthException

      Specified by:
        `secureResponse` in interface `javax.security.auth.message.ServerAuth`
      Throws:
        `javax.security.auth.message.AuthException`

    - #### cleanSubject

          public void cleanSubject(javax.security.auth.message.MessageInfo messageInfo,
                          javax.security.auth.Subject subject)
                            throws javax.security.auth.message.AuthException

      Specified by:
        `cleanSubject` in interface `javax.security.auth.message.ServerAuth`
      Throws:
        `javax.security.auth.message.AuthException`

Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.