public interface Credential
| Modifier and Type | Method and Description |
|---|---|
CredentialContextSet |
getCredentialContextSet()
Get the set of credential context information, which provides additional information
specific to the contexts in which the credential was resolved.
|
java.lang.Class<? extends Credential> |
getCredentialType()
Get the primary type of the credential instance.
|
java.lang.String |
getEntityId()
The unique ID of the entity this credential is for.
|
java.util.Collection<java.lang.String> |
getKeyNames()
Gets key names for this credential.
|
java.security.PrivateKey |
getPrivateKey()
Gets the private key for the entity if there is one.
|
java.security.PublicKey |
getPublicKey()
Gets the public key for the entity.
|
javax.crypto.SecretKey |
getSecretKey()
Gets the secret key for this entity.
|
UsageType |
getUsageType()
Gets usage type of this credential.
|
@Nullable java.lang.String getEntityId()
@Nullable UsageType getUsageType()
@Nonnull java.util.Collection<java.lang.String> getKeyNames()
getPublicKey(), getPrivateKey()
or getSecretKey() methods.@Nullable java.security.PublicKey getPublicKey()
@Nullable java.security.PrivateKey getPrivateKey()
@Nullable javax.crypto.SecretKey getSecretKey()
@Nullable CredentialContextSet getCredentialContextSet()
@Nonnull java.lang.Class<? extends Credential> getCredentialType()
Credential implemented by an implementation.