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, getUsageType
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getCredentialContextSet, getEntityId, getKeyNames, getPrivateKey, getPublicKey, getSecretKey, getUsageType
public 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 Credential
public void setEntityId(@Nullable String newEntityId)
setEntityId
in interface MutableCredential
setEntityId
in class AbstractCredential
newEntityId
- ID of the entity this credential is forpublic void setUsageType(@Nonnull UsageType newUsageType)
setUsageType
in interface MutableCredential
setUsageType
in class AbstractCredential
newUsageType
- usage type for this credentialpublic void setPublicKey(@Nonnull PublicKey newPublicKey)
setPublicKey
in interface MutableCredential
setPublicKey
in class AbstractCredential
newPublicKey
- public key for this credentialpublic void setPrivateKey(@Nonnull PrivateKey newPrivateKey)
setPrivateKey
in interface MutableCredential
setPrivateKey
in class AbstractCredential
newPrivateKey
- private key for this credentialpublic void setSecretKey(@Nonnull SecretKey newSecretKey)
setSecretKey
in interface MutableCredential
setSecretKey
in class AbstractCredential
newSecretKey
- secret key for this credentialCopyright © 2016 JBoss by Red Hat. All rights reserved.