Package com.sun.jaspic.config.factory
Class DefaultServerAuthConfig
- java.lang.Object
-
- com.sun.jaspic.config.factory.DefaultServerAuthConfig
-
- All Implemented Interfaces:
jakarta.security.auth.message.config.AuthConfig,jakarta.security.auth.message.config.ServerAuthConfig
public class DefaultServerAuthConfig extends Object implements jakarta.security.auth.message.config.ServerAuthConfig
This class functions as a kind of factory forServerAuthContextinstances, which are delegates for the actualServerAuthModule(SAM) that we're after.- Author:
- Arjan Tijms
-
-
Constructor Summary
Constructors Constructor Description DefaultServerAuthConfig(String layer, String appContext, CallbackHandler handler, Map<String,String> providerProperties, jakarta.security.auth.message.module.ServerAuthModule serverAuthModule)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetAppContext()jakarta.security.auth.message.config.ServerAuthContextgetAuthContext(String authContextID, Subject serviceSubject, Map properties)StringgetAuthContextID(jakarta.security.auth.message.MessageInfo messageInfo)It's not entirely clear what the difference is between the "application context identifier" (appContext) and the "authentication context identifier" (authContext).StringgetMessageLayer()Map<String,String>getProviderProperties()booleanisProtected()voidrefresh()
-
-
-
Method Detail
-
getAuthContext
public jakarta.security.auth.message.config.ServerAuthContext getAuthContext(String authContextID, Subject serviceSubject, Map properties) throws jakarta.security.auth.message.AuthException
- Specified by:
getAuthContextin interfacejakarta.security.auth.message.config.ServerAuthConfig- Throws:
jakarta.security.auth.message.AuthException
-
getMessageLayer
public String getMessageLayer()
- Specified by:
getMessageLayerin interfacejakarta.security.auth.message.config.AuthConfig
-
getAuthContextID
public String getAuthContextID(jakarta.security.auth.message.MessageInfo messageInfo)
It's not entirely clear what the difference is between the "application context identifier" (appContext) and the "authentication context identifier" (authContext). In early iterations of the specification, authContext was called "operation" and instead of the MessageInfo it was obtained by something called an "authParam".- Specified by:
getAuthContextIDin interfacejakarta.security.auth.message.config.AuthConfig
-
getAppContext
public String getAppContext()
- Specified by:
getAppContextin interfacejakarta.security.auth.message.config.AuthConfig
-
refresh
public void refresh()
- Specified by:
refreshin interfacejakarta.security.auth.message.config.AuthConfig
-
isProtected
public boolean isProtected()
- Specified by:
isProtectedin interfacejakarta.security.auth.message.config.AuthConfig
-
-