Class AuthConfigFactory
java.lang.Object
jakarta.security.auth.message.config.AuthConfigFactory
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static final String
static final SecurityPermission
Deprecated, for removal: This API element is subject to removal in a future version.Following JEP 411static final String
static final SecurityPermission
Deprecated, for removal: This API element is subject to removal in a future version.Following JEP 411static final String
static final SecurityPermission
Deprecated, for removal: This API element is subject to removal in a future version.Following JEP 411 -
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:
-
GET_FACTORY_PERMISSION_NAME
- See Also:
-
SET_FACTORY_PERMISSION_NAME
- See Also:
-
PROVIDER_REGISTRATION_PERMISSION_NAME
- See Also:
-
getFactorySecurityPermission
Deprecated, for removal: This API element is subject to removal in a future version.Following JEP 411 -
setFactorySecurityPermission
Deprecated, for removal: This API element is subject to removal in a future version.Following JEP 411 -
providerRegistrationSecurityPermission
@Deprecated(forRemoval=true) public static final SecurityPermission providerRegistrationSecurityPermissionDeprecated, for removal: This API element is subject to removal in a future version.Following JEP 411
-
-
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
-