public abstract class AbstractCredential extends Object implements Credential
Credential
implementations.Constructor and Description |
---|
AbstractCredential()
Constructor.
|
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.
|
String |
getEntityId()
The unique ID of the entity this credential is for.
|
Collection<String> |
getKeyNames()
Gets key names for this credential.
|
PrivateKey |
getPrivateKey()
Gets the private key for the entity if there is one.
|
PublicKey |
getPublicKey()
Gets the public key for the entity.
|
SecretKey |
getSecretKey()
Gets the secret key for this entity.
|
UsageType |
getUsageType()
Gets usage type of this credential.
|
protected void |
setEntityId(String newEntityID)
Sets the ID of the entity this credential is for.
|
protected void |
setPrivateKey(PrivateKey newPrivateKey)
Sets the private key for this credential.
|
protected void |
setPublicKey(PublicKey newPublicKey)
Sets the public key for this credential.
|
protected void |
setSecretKey(SecretKey newSecretKey)
Sets the secret key for this credential.
|
protected void |
setUsageType(UsageType newUsageType)
Sets the usage type for this credential.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getCredentialType
@Nullable public String getEntityId()
getEntityId
in interface Credential
@Nullable public UsageType getUsageType()
getUsageType
in interface Credential
@Nonnull public Collection<String> getKeyNames()
Credential.getPublicKey()
, Credential.getPrivateKey()
or Credential.getSecretKey()
methods.getKeyNames
in interface Credential
@Nullable public PublicKey getPublicKey()
getPublicKey
in interface Credential
@Nullable public SecretKey getSecretKey()
getSecretKey
in interface Credential
@Nullable public PrivateKey getPrivateKey()
getPrivateKey
in interface Credential
@Nonnull public CredentialContextSet getCredentialContextSet()
getCredentialContextSet
in interface Credential
protected void setEntityId(@Nullable String newEntityID)
newEntityID
- ID of the entity this credential is forprotected void setUsageType(@Nonnull UsageType newUsageType)
newUsageType
- usage type for this credentialprotected void setPublicKey(@Nonnull PublicKey newPublicKey)
newPublicKey
- public key for this credentialprotected void setPrivateKey(@Nonnull PrivateKey newPrivateKey)
newPrivateKey
- private key for this credentialCopyright © 2016 JBoss by Red Hat. All rights reserved.