Class WildFlyCredentialFactory
java.lang.Object
org.frankframework.credentialprovider.WildFlyCredentialFactory
- All Implemented Interfaces:
ICredentialFactory
This CredentialFactory implementation uses the WildFly Credential Store to retrieve credentials.
The "credentialFactory.wildfly.credentialStore" is used to set the credential store in WildFly which will be used.
By default, the credential store is set to CS
.
Aliases ending with "/username" are normalized by removing the suffix before being included in the returned collection of configured aliases.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionreturn a list of all configured aliases, or null if such a list cannot be provided.getCredentials
(String alias, Supplier<String> defaultUsernameSupplier, Supplier<String> defaultPasswordSupplier) protected org.jboss.msc.service.ServiceContainer
boolean
hasCredentials
(String alias) void
initialize() of an implementation can throw an exception when the credentialFactory cannot be properly configured and used.
-
Constructor Details
-
WildFlyCredentialFactory
public WildFlyCredentialFactory()
-
-
Method Details
-
initialize
public void initialize()Description copied from interface:ICredentialFactory
initialize() of an implementation can throw an exception when the credentialFactory cannot be properly configured and used.- Specified by:
initialize
in interfaceICredentialFactory
-
getCredentials
public ICredentials getCredentials(String alias, Supplier<String> defaultUsernameSupplier, Supplier<String> defaultPasswordSupplier) - Specified by:
getCredentials
in interfaceICredentialFactory
-
hasCredentials
- Specified by:
hasCredentials
in interfaceICredentialFactory
-
getConfiguredAliases
public Collection<String> getConfiguredAliases() throws UnsupportedOperationException, org.wildfly.security.credential.store.CredentialStoreExceptionDescription copied from interface:ICredentialFactory
return a list of all configured aliases, or null if such a list cannot be provided.- Specified by:
getConfiguredAliases
in interfaceICredentialFactory
- Throws:
UnsupportedOperationException
org.wildfly.security.credential.store.CredentialStoreException
-
getServiceContainer
protected org.jboss.msc.service.ServiceContainer getServiceContainer()
-