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 forServerAuthContext
instances, 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 String
getAppContext()
jakarta.security.auth.message.config.ServerAuthContext
getAuthContext(String authContextID, Subject serviceSubject, Map properties)
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).String
getMessageLayer()
Map<String,String>
getProviderProperties()
boolean
isProtected()
void
refresh()
-
-
-
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:
getAuthContext
in interfacejakarta.security.auth.message.config.ServerAuthConfig
- Throws:
jakarta.security.auth.message.AuthException
-
getMessageLayer
public String getMessageLayer()
- Specified by:
getMessageLayer
in 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:
getAuthContextID
in interfacejakarta.security.auth.message.config.AuthConfig
-
getAppContext
public String getAppContext()
- Specified by:
getAppContext
in interfacejakarta.security.auth.message.config.AuthConfig
-
refresh
public void refresh()
- Specified by:
refresh
in interfacejakarta.security.auth.message.config.AuthConfig
-
isProtected
public boolean isProtected()
- Specified by:
isProtected
in interfacejakarta.security.auth.message.config.AuthConfig
-
-