public class CredentialStoreClient extends Object
CredentialStore to obtain secret value (credential) from it.| Constructor and Description |
|---|
CredentialStoreClient(org.wildfly.security.credential.store.CredentialStore credentialStore,
String name,
String alias)
Constructor to create instance of
CredentialStoreClient. |
CredentialStoreClient(org.wildfly.security.credential.store.CredentialStore credentialStore,
String name,
String alias,
Class<? extends org.wildfly.security.credential.Credential> type)
Constructor to create instance of
CredentialStoreClient. |
CredentialStoreClient(org.wildfly.security.credential.store.CredentialStore credentialStore,
String name,
String alias,
String className)
Constructor to create instance of
CredentialStoreClient. |
| Modifier and Type | Method and Description |
|---|---|
String |
getAlias()
Get alias used by this credential store client to fetch credential
|
org.wildfly.security.credential.Credential |
getCredential()
Get the
Credential instance from the credential store. |
org.wildfly.security.credential.store.CredentialStore |
getCredentialStore()
Retrieve associated
CredentialStore
This method should perform check whether the CredentialStore can be returned to caller. |
char[] |
getSecret()
Get the secret in form of clear text.
|
Class<? extends org.wildfly.security.credential.Credential> |
getType()
Get type used by this credential store client to fetch credential
|
public CredentialStoreClient(org.wildfly.security.credential.store.CredentialStore credentialStore,
String name,
String alias,
Class<? extends org.wildfly.security.credential.Credential> type)
CredentialStoreClient.credentialStore - actual CredentialStore used by this clientname - of credential storealias - of credential in the storetype - of credential denoted by this aliaspublic CredentialStoreClient(org.wildfly.security.credential.store.CredentialStore credentialStore,
String name,
String alias)
CredentialStoreClient.credentialStore - actual CredentialStore used by this clientname - of credential storealias - of credential in the storepublic CredentialStoreClient(org.wildfly.security.credential.store.CredentialStore credentialStore,
String name,
String alias,
String className)
throws ClassNotFoundException
CredentialStoreClient.credentialStore - actual CredentialStore used by this clientname - of credential storealias - of credential in the storeclassName - of credential denoted by this aliasClassNotFoundException - when credential reference holding credential type which cannot be resolved using current providerspublic char[] getSecret()
null when destroyed.public org.wildfly.security.credential.Credential getCredential()
Credential instance from the credential store.nullpublic org.wildfly.security.credential.store.CredentialStore getCredentialStore()
CredentialStore
This method should perform check whether the CredentialStore can be returned to caller.CredentialStorepublic String getAlias()
public Class<? extends org.wildfly.security.credential.Credential> getType()
Copyright © 2017 JBoss by Red Hat. All rights reserved.