Package com.sun.jaspic.config.helper
Class BaseAuthConfigImpl
- java.lang.Object
-
- com.sun.jaspic.config.helper.BaseAuthConfigImpl
-
- Direct Known Subclasses:
ClientAuthConfigImpl
,ServerAuthConfigImpl
public abstract class BaseAuthConfigImpl extends Object
Base class for theClientAuthConfigImpl
andServerAuthConfigImpl
.- Author:
- Ron Monzillo
-
-
Constructor Summary
Constructors Constructor Description BaseAuthConfigImpl(String loggerName, EpochCarrier providerEpoch, MessagePolicyDelegate mpDelegate, String layer, String appContext, CallbackHandler cbh)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected void
checkMessageTypes(Class<?>[] supportedMessageTypes)
protected abstract <M> M
createAuthContext(String authContextID, Map<String,?> properties)
String
getAppContext()
String
getAuthContextID(jakarta.security.auth.message.MessageInfo messageInfo)
protected <M> M
getContext(Map<String,Map<Integer,M>> contextMap, String authContextID, Subject subject, Map<String,?> properties)
String
getMessageLayer()
protected abstract void
initializeContextMap()
Only called from initialize (while lock is held).protected boolean
isLoggable(Level level)
protected void
logIfLevel(Level level, Throwable t, String... msgParts)
void
refresh()
-
-
-
Constructor Detail
-
BaseAuthConfigImpl
public BaseAuthConfigImpl(String loggerName, EpochCarrier providerEpoch, MessagePolicyDelegate mpDelegate, String layer, String appContext, CallbackHandler cbh) throws jakarta.security.auth.message.AuthException
- Throws:
jakarta.security.auth.message.AuthException
-
-
Method Detail
-
getMessageLayer
public String getMessageLayer()
-
getAppContext
public String getAppContext()
-
getAuthContextID
public String getAuthContextID(jakarta.security.auth.message.MessageInfo messageInfo)
-
refresh
public void refresh()
-
getContext
protected final <M> M getContext(Map<String,Map<Integer,M>> contextMap, String authContextID, Subject subject, Map<String,?> properties) throws jakarta.security.auth.message.AuthException
- Throws:
jakarta.security.auth.message.AuthException
-
isLoggable
protected boolean isLoggable(Level level)
-
checkMessageTypes
protected void checkMessageTypes(Class<?>[] supportedMessageTypes) throws jakarta.security.auth.message.AuthException
- Throws:
jakarta.security.auth.message.AuthException
-
initializeContextMap
protected abstract void initializeContextMap()
Only called from initialize (while lock is held).
-
-