SimpleAuthConfigProvider (Apache Tomcat 8.5.43 API Documentation)

org.apache.catalina.authenticator.jaspic

## Class SimpleAuthConfigProvider

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

- All Implemented Interfaces:
    javax.security.auth.message.config.AuthConfigProvider

      public class SimpleAuthConfigProvider
      extends java.lang.Object
      implements javax.security.auth.message.config.AuthConfigProvider

  Basic implementation primarily intended for use when using third-party `ServerAuthModule` implementations that only provide the module.

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `SimpleAuthConfigProvider(java.util.Map<java.lang.String,java.lang.String> properties, javax.security.auth.message.config.AuthConfigFactory factory)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `protected javax.security.auth.message.config.ServerAuthConfig` | `createServerAuthConfig(java.lang.String layer, java.lang.String appContext, javax.security.auth.callback.CallbackHandler handler, java.util.Map<java.lang.String,java.lang.String> properties)`
    `javax.security.auth.message.config.ClientAuthConfig` | `getClientAuthConfig(java.lang.String layer, java.lang.String appContext, javax.security.auth.callback.CallbackHandler handler)` This implementation does not support client-side authentication and therefore always returns `null`.
    `javax.security.auth.message.config.ServerAuthConfig` | `getServerAuthConfig(java.lang.String layer, java.lang.String appContext, javax.security.auth.callback.CallbackHandler handler)`
    `void` | `refresh()`

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

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

- - ### Constructor Detail

    - #### SimpleAuthConfigProvider

          public SimpleAuthConfigProvider(java.util.Map<java.lang.String,java.lang.String> properties,
                                  javax.security.auth.message.config.AuthConfigFactory factory)

  - ### Method Detail

    - #### getClientAuthConfig

          public javax.security.auth.message.config.ClientAuthConfig getClientAuthConfig(java.lang.String layer,
                                                                                java.lang.String appContext,
                                                                                javax.security.auth.callback.CallbackHandler handler)
                                                                                  throws javax.security.auth.message.AuthException

      This implementation does not support client-side authentication and therefore always returns `null`.

      Specified by:
        `getClientAuthConfig` in interface `javax.security.auth.message.config.AuthConfigProvider`
      Throws:
        `javax.security.auth.message.AuthException`

    - #### getServerAuthConfig

          public javax.security.auth.message.config.ServerAuthConfig getServerAuthConfig(java.lang.String layer,
                                                                                java.lang.String appContext,
                                                                                javax.security.auth.callback.CallbackHandler handler)
                                                                                  throws javax.security.auth.message.AuthException

      Specified by:
        `getServerAuthConfig` in interface `javax.security.auth.message.config.AuthConfigProvider`
      Throws:
        `javax.security.auth.message.AuthException`

    - #### createServerAuthConfig

          protected javax.security.auth.message.config.ServerAuthConfig createServerAuthConfig(java.lang.String layer,
                                                                                   java.lang.String appContext,
                                                                                   javax.security.auth.callback.CallbackHandler handler,
                                                                                   java.util.Map<java.lang.String,java.lang.String> properties)

    - #### refresh

          public void refresh()

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

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