|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Credential
A credential for an entity. A particular credential may contain either asymmetric key information (a public key and optionally the corresponding private key), or a symmetric (secret) key, but never both. With asymmetric key-based credentials, local entity credentials will usually contain both a public and private key while peer credentails will normally contain only a public key.
Method Summary | |
---|---|
CredentialContextSet |
getCredentalContextSet()
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. |
Method Detail |
---|
java.lang.String getEntityId()
UsageType getUsageType()
java.util.Collection<java.lang.String> getKeyNames()
getPublicKey()
, getPrivateKey()
or getSecretKey()
methods.
java.security.PublicKey getPublicKey()
java.security.PrivateKey getPrivateKey()
javax.crypto.SecretKey getSecretKey()
CredentialContextSet getCredentalContextSet()
java.lang.Class<? extends Credential> getCredentialType()
Credential
implemented by an implementation.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |