Class AuthConfigFactory
java.lang.Object
jakarta.security.auth.message.config.AuthConfigFactory
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final SecurityPermissionDeprecated, for removal: This API element is subject to removal in a future version.Following JEP 411static final Stringstatic final SecurityPermissionDeprecated, for removal: This API element is subject to removal in a future version.Following JEP 411static final Stringstatic final SecurityPermissionDeprecated, for removal: This API element is subject to removal in a future version.Following JEP 411 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract String[]detachListener(RegistrationListener listener, String layer, String appContext) abstract AuthConfigProvidergetConfigProvider(String layer, String appContext, RegistrationListener listener) static AuthConfigFactorygetRegistrationContext(String registrationID) abstract String[]getRegistrationIDs(AuthConfigProvider provider) abstract voidrefresh()abstract StringregisterConfigProvider(AuthConfigProvider provider, String layer, String appContext, String description) abstract StringregisterConfigProvider(String className, Map<String, String> properties, String layer, String appContext, String description) abstract StringregisterServerAuthModule(ServerAuthModule serverAuthModule, Object context) Convenience method for registering aServerAuthModulethat should have the same effect as callingregisterConfigProvider(AuthConfigProvider, String, String, String)with the implementation providing the appropriateAuthConfigProvidergenerated from the provided context.abstract booleanremoveRegistration(String registrationID) abstract voidremoveServerAuthModule(Object context) Convenience method for deregistering aServerAuthModulethat should have the same effect as callingremoveRegistration(String).static voidsetFactory(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 aServerAuthModulethat should have the same effect as callingregisterConfigProvider(AuthConfigProvider, String, String, String)with the implementation providing the appropriateAuthConfigProvidergenerated from the provided context.- Parameters:
serverAuthModule- TheServerAuthModuleto registercontext- The associated application context- Returns:
- A string identifier for the created registration
- Since:
- Authentication 3.0
-
removeServerAuthModule
Convenience method for deregistering aServerAuthModulethat should have the same effect as callingremoveRegistration(String).- Parameters:
context- The associated application context- Since:
- Authentication 3.0
-