public class BasicCredential extends AbstractCredential implements MutableCredential
Credential.| Modifier | Constructor and Description |
|---|---|
protected |
BasicCredential()
Constructor.
|
|
BasicCredential(PublicKey publicKey)
Constructor.
|
|
BasicCredential(PublicKey publicKey,
PrivateKey privateKey)
Constructor.
|
|
BasicCredential(SecretKey secretKey)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Class<? extends Credential> |
getCredentialType()
Get the primary type of the credential instance.
|
void |
setEntityId(String newEntityId)
Sets the ID of the entity this credential is for.
|
void |
setPrivateKey(PrivateKey newPrivateKey)
Sets the private key for this credential.
|
void |
setPublicKey(PublicKey newPublicKey)
Sets the public key for this credential.
|
void |
setSecretKey(SecretKey newSecretKey)
Sets the secret key for this credential.
|
void |
setUsageType(UsageType newUsageType)
Sets the usage type for this credential.
|
getCredentialContextSet, getEntityId, getKeyNames, getPrivateKey, getPublicKey, getSecretKey, getUsageTypeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCredentialContextSet, getEntityId, getKeyNames, getPrivateKey, getPublicKey, getSecretKey, getUsageTypepublic BasicCredential(@Nonnull PublicKey publicKey)
publicKey - the credential public keypublic BasicCredential(@Nonnull PublicKey publicKey, @Nullable PrivateKey privateKey)
publicKey - the credential public keyprivateKey - the credential private keypublic BasicCredential(@Nonnull SecretKey secretKey)
secretKey - the credential secret keyprotected BasicCredential()
public Class<? extends Credential> getCredentialType()
Credential implemented by an implementation.getCredentialType in interface Credentialpublic void setEntityId(@Nullable String newEntityId)
setEntityId in interface MutableCredentialsetEntityId in class AbstractCredentialnewEntityId - ID of the entity this credential is forpublic void setUsageType(@Nonnull UsageType newUsageType)
setUsageType in interface MutableCredentialsetUsageType in class AbstractCredentialnewUsageType - usage type for this credentialpublic void setPublicKey(@Nonnull PublicKey newPublicKey)
setPublicKey in interface MutableCredentialsetPublicKey in class AbstractCredentialnewPublicKey - public key for this credentialpublic void setPrivateKey(@Nonnull PrivateKey newPrivateKey)
setPrivateKey in interface MutableCredentialsetPrivateKey in class AbstractCredentialnewPrivateKey - private key for this credentialpublic void setSecretKey(@Nonnull SecretKey newSecretKey)
setSecretKey in interface MutableCredentialsetSecretKey in class AbstractCredentialnewSecretKey - secret key for this credentialCopyright © 1999–2016 Shibboleth Consortium. All rights reserved.