SimpleServerAuthConfig (Apache Tomcat 8.5.43 API Documentation)

org.apache.catalina.authenticator.jaspic

## Class SimpleServerAuthConfig

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

- All Implemented Interfaces:
    javax.security.auth.message.config.AuthConfig, javax.security.auth.message.config.ServerAuthConfig

      public class SimpleServerAuthConfig
      extends java.lang.Object
      implements javax.security.auth.message.config.ServerAuthConfig

  Basic implementation primarily intended for use when using third-party `ServerAuthModule` implementations that only provide the module. This implementation supports configuring the `ServerAuthContext` with multiple modules.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `SimpleServerAuthConfig(java.lang.String layer, java.lang.String appContext, javax.security.auth.callback.CallbackHandler handler, java.util.Map<java.lang.String,java.lang.String> properties)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `protected javax.security.auth.message.config.ServerAuthContext` | `createServerAuthContext(java.util.List<javax.security.auth.message.module.ServerAuthModule> modules)`
    `java.lang.String` | `getAppContext()`
    `javax.security.auth.message.config.ServerAuthContext` | `getAuthContext(java.lang.String authContextID, javax.security.auth.Subject serviceSubject, java.util.Map properties)`
    `java.lang.String` | `getAuthContextID(javax.security.auth.message.MessageInfo messageInfo)`
    `java.lang.String` | `getMessageLayer()`
    `boolean` | `isProtected()`
    `void` | `refresh()`

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

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

- - ### Constructor Detail

    - #### SimpleServerAuthConfig

          public SimpleServerAuthConfig(java.lang.String layer,
                                java.lang.String appContext,
                                javax.security.auth.callback.CallbackHandler handler,
                                java.util.Map<java.lang.String,java.lang.String> properties)

  - ### Method Detail

    - #### getMessageLayer

          public java.lang.String getMessageLayer()

      Specified by:
        `getMessageLayer` in interface `javax.security.auth.message.config.AuthConfig`

    - #### getAppContext

          public java.lang.String getAppContext()

      Specified by:
        `getAppContext` in interface `javax.security.auth.message.config.AuthConfig`

    - #### getAuthContextID

          public java.lang.String getAuthContextID(javax.security.auth.message.MessageInfo messageInfo)

      Specified by:
        `getAuthContextID` in interface `javax.security.auth.message.config.AuthConfig`

    - #### refresh

          public void refresh()

      Specified by:
        `refresh` in interface `javax.security.auth.message.config.AuthConfig`

    - #### isProtected

          public boolean isProtected()

      Specified by:
        `isProtected` in interface `javax.security.auth.message.config.AuthConfig`

    - #### getAuthContext

          public javax.security.auth.message.config.ServerAuthContext getAuthContext(java.lang.String authContextID,
                                                                            javax.security.auth.Subject serviceSubject,
                                                                            java.util.Map properties)
                                                                              throws javax.security.auth.message.AuthException

      Specified by:
        `getAuthContext` in interface `javax.security.auth.message.config.ServerAuthConfig`
      Throws:
        `javax.security.auth.message.AuthException`

    - #### createServerAuthContext

          protected javax.security.auth.message.config.ServerAuthContext createServerAuthContext(java.util.List<javax.security.auth.message.module.ServerAuthModule> modules)

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