Interface AuthConfig
- All Known Subinterfaces:
ClientAuthConfig, ServerAuthConfig
public interface AuthConfig
Provides configuration information for a JASPIC authentication mechanism. An AuthConfig defines the message layer,
application context, and authentication context ID for a given message, and indicates whether the mechanism is
protected.
-
Method Summary
Modifier and TypeMethodDescriptionReturns the application context for which this configuration applies.getAuthContextID(MessageInfo messageInfo) Determines the authentication context ID for the given message.Returns the message layer for which this configuration applies.booleanIndicates whether the authentication mechanism is protected, meaning that the configuration data is stored securely.voidrefresh()Refreshes the configuration, reloading any changed settings.
-
Method Details
-
getMessageLayer
String getMessageLayer()Returns the message layer for which this configuration applies.- Returns:
- the message layer
-
getAppContext
String getAppContext()Returns the application context for which this configuration applies.- Returns:
- the application context
-
getAuthContextID
Determines the authentication context ID for the given message.- Parameters:
messageInfo- the message information used to determine the context ID- Returns:
- the authentication context ID, or
nullif no context applies
-
refresh
void refresh()Refreshes the configuration, reloading any changed settings. -
isProtected
boolean isProtected()Indicates whether the authentication mechanism is protected, meaning that the configuration data is stored securely.- Returns:
trueif the mechanism is protected,falseotherwise
-