Top Description Fields Constructors Methods
org.apache.catalina.authenticator.jaspic

public Class SimpleServerAuthConfig

extends Object
implements ServerAuthConfig
Class Inheritance
All Implemented Interfaces
jakarta.security.auth.message.config.ServerAuthConfig, jakarta.security.auth.message.config.AuthConfig
Imports
java.util.ArrayList, .HashMap, .List, .Map, javax.security.auth.Subject, javax.security.auth.callback.CallbackHandler, jakarta.security.auth.message.AuthException, .MessageInfo, jakarta.security.auth.message.config.ServerAuthConfig, .ServerAuthContext, jakarta.security.auth.message.module.ServerAuthModule, org.apache.tomcat.util.res.StringManager

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.

Field Summary

Modifier and TypeField and Description
private final String
private final CallbackHandler
private final String
private final Map<String, Object>
private static final String
private volatile ServerAuthContext
private static StringManager

Constructor Summary

AccessConstructor and Description
public
SimpleServerAuthConfig(String layer, String appContext, CallbackHandler handler, Map<String, Object> properties)

Method Summary

Modifier and TypeMethod and Description
protected ServerAuthContext
public String
public ServerAuthContext
public String
public String
public boolean
public void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

appContextback to summary
private final String appContext
handlerback to summary
private final CallbackHandler handler
layerback to summary
private final String layer
propertiesback to summary
private final Map<String, Object> properties
SERVER_AUTH_MODULE_KEY_PREFIXback to summary
private static final String SERVER_AUTH_MODULE_KEY_PREFIX
serverAuthContextback to summary
private volatile ServerAuthContext serverAuthContext
smback to summary
private static StringManager sm

Constructor Detail

SimpleServerAuthConfigback to summary
public SimpleServerAuthConfig(String layer, String appContext, CallbackHandler handler, Map<String, Object> properties)

Method Detail

createServerAuthContextback to summary
protected ServerAuthContext createServerAuthContext(List<ServerAuthModule> modules)
getAppContextback to summary
public String getAppContext()

Implements jakarta.security.auth.message.config.AuthConfig.getAppContext.

Annotations
@Override
getAuthContextback to summary
public ServerAuthContext getAuthContext(String authContextID, Subject serviceSubject, Map<String, Object> properties) throws AuthException

Implements jakarta.security.auth.message.config.ServerAuthConfig.getAuthContext.

Annotations
@Override
getAuthContextIDback to summary
public String getAuthContextID(MessageInfo messageInfo)

Implements jakarta.security.auth.message.config.AuthConfig.getAuthContextID.

Annotations
@Override
getMessageLayerback to summary
public String getMessageLayer()

Implements jakarta.security.auth.message.config.AuthConfig.getMessageLayer.

Annotations
@Override
isProtectedback to summary
public boolean isProtected()

Implements jakarta.security.auth.message.config.AuthConfig.isProtected.

Annotations
@Override
refreshback to summary
public void refresh()

Implements jakarta.security.auth.message.config.AuthConfig.refresh.

Annotations
@Override