Class WildFlyCredentialFactory
java.lang.Object
org.frankframework.credentialprovider.WildFlyCredentialFactory
- All Implemented Interfaces:
ISecretProvider
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.getSecret
(CredentialAlias alias) protected org.jboss.msc.service.ServiceContainer
boolean
hasSecret
(CredentialAlias 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:ISecretProvider
initialize() of an implementation can throw an exception when the credentialFactory cannot be properly configured and used.- Specified by:
initialize
in interfaceISecretProvider
-
getSecret
- Specified by:
getSecret
in interfaceISecretProvider
- Throws:
NoSuchElementException
-
hasSecret
- Specified by:
hasSecret
in interfaceISecretProvider
-
getConfiguredAliases
public Collection<String> getConfiguredAliases() throws UnsupportedOperationException, org.wildfly.security.credential.store.CredentialStoreExceptionDescription copied from interface:ISecretProvider
return a list of all configured aliases, or null if such a list cannot be provided.- Specified by:
getConfiguredAliases
in interfaceISecretProvider
- Throws:
UnsupportedOperationException
org.wildfly.security.credential.store.CredentialStoreException
-
getServiceContainer
protected org.jboss.msc.service.ServiceContainer getServiceContainer()
-