public abstract class AbstractCredential extends Object implements Credential
Credential
implementations.Modifier and Type | Field and Description |
---|---|
protected CredentialContextSet |
credentialContextSet
Credential context of this credential.
|
protected String |
entityID
ID of the entity owning this credential.
|
protected Collection<String> |
keyNames
Key names for this credential.
|
protected PrivateKey |
privateKey
Private key of this credential.
|
protected PublicKey |
publicKey
Public key of this credential.
|
protected SecretKey |
secretKey
Secret key for this credential.
|
protected UsageType |
usageType
Usage type of this credential.
|
Constructor and Description |
---|
AbstractCredential()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
CredentialContextSet |
getCredentalContextSet()
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getCredentialType
protected String entityID
protected UsageType usageType
protected Collection<String> keyNames
protected PublicKey publicKey
protected SecretKey secretKey
protected PrivateKey privateKey
protected final CredentialContextSet credentialContextSet
public String getEntityId()
getEntityId
in interface Credential
public UsageType getUsageType()
getUsageType
in interface Credential
public Collection<String> getKeyNames()
Credential.getPublicKey()
, Credential.getPrivateKey()
or Credential.getSecretKey()
methods.getKeyNames
in interface Credential
public PublicKey getPublicKey()
getPublicKey
in interface Credential
public SecretKey getSecretKey()
getSecretKey
in interface Credential
public PrivateKey getPrivateKey()
getPrivateKey
in interface Credential
public CredentialContextSet getCredentalContextSet()
getCredentalContextSet
in interface Credential
Copyright © 2018 JBoss by Red Hat. All rights reserved.