Class AuthConfigFactory
java.lang.Object
jakarta.security.auth.message.config.AuthConfigFactory
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract String[]
detachListener
(RegistrationListener listener, String layer, String appContext) abstract AuthConfigProvider
getConfigProvider
(String layer, String appContext, RegistrationListener listener) static AuthConfigFactory
getRegistrationContext
(String registrationID) abstract String[]
getRegistrationIDs
(AuthConfigProvider provider) abstract void
refresh()
abstract String
registerConfigProvider
(AuthConfigProvider provider, String layer, String appContext, String description) abstract String
registerConfigProvider
(String className, Map<String, String> properties, String layer, String appContext, String description) abstract String
registerServerAuthModule
(ServerAuthModule serverAuthModule, Object context) Convenience method for registering aServerAuthModule
that should have the same effect as callingregisterConfigProvider(AuthConfigProvider, String, String, String)
with the implementation providing the appropriateAuthConfigProvider
generated from the provided context.abstract boolean
removeRegistration
(String registrationID) abstract void
removeServerAuthModule
(Object context) Convenience method for deregistering aServerAuthModule
that should have the same effect as callingremoveRegistration(String)
.static void
setFactory
(AuthConfigFactory factory)
-
Field Details
-
DEFAULT_FACTORY_SECURITY_PROPERTY
- See Also:
-
-
Constructor Details
-
AuthConfigFactory
public AuthConfigFactory()
-
-
Method Details
-
getFactory
-
setFactory
-
getConfigProvider
public abstract AuthConfigProvider getConfigProvider(String layer, String appContext, RegistrationListener listener) -
registerConfigProvider
-
registerConfigProvider
public abstract String registerConfigProvider(AuthConfigProvider provider, String layer, String appContext, String description) -
removeRegistration
-
detachListener
public abstract String[] detachListener(RegistrationListener listener, String layer, String appContext) -
getRegistrationIDs
-
getRegistrationContext
-
refresh
public abstract void refresh() -
registerServerAuthModule
Convenience method for registering aServerAuthModule
that should have the same effect as callingregisterConfigProvider(AuthConfigProvider, String, String, String)
with the implementation providing the appropriateAuthConfigProvider
generated from the provided context.- Parameters:
serverAuthModule
- TheServerAuthModule
to registercontext
- The associated application context- Returns:
- A string identifier for the created registration
- Since:
- Authentication 3.0
-
removeServerAuthModule
Convenience method for deregistering aServerAuthModule
that should have the same effect as callingremoveRegistration(String)
.- Parameters:
context
- The associated application context- Since:
- Authentication 3.0
-