@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class GetPublicKeyResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Constructor and Description |
---|
GetPublicKeyResult() |
Modifier and Type | Method and Description |
---|---|
GetPublicKeyResult |
clone() |
boolean |
equals(Object obj) |
String |
getCustomerMasterKeySpec()
The type of the of the public key that was downloaded.
|
List<String> |
getEncryptionAlgorithms()
The encryption algorithms that AWS KMS supports for this key.
|
String |
getKeyId()
The Amazon Resource Name (key ARN) of the
asymmetric CMK from which the public key was downloaded.
|
String |
getKeyUsage()
The permitted use of the public key.
|
ByteBuffer |
getPublicKey()
The exported public key.
|
List<String> |
getSigningAlgorithms()
The signing algorithms that AWS KMS supports for this key.
|
int |
hashCode() |
void |
setCustomerMasterKeySpec(String customerMasterKeySpec)
The type of the of the public key that was downloaded.
|
void |
setEncryptionAlgorithms(Collection<String> encryptionAlgorithms)
The encryption algorithms that AWS KMS supports for this key.
|
void |
setKeyId(String keyId)
The Amazon Resource Name (key ARN) of the
asymmetric CMK from which the public key was downloaded.
|
void |
setKeyUsage(String keyUsage)
The permitted use of the public key.
|
void |
setPublicKey(ByteBuffer publicKey)
The exported public key.
|
void |
setSigningAlgorithms(Collection<String> signingAlgorithms)
The signing algorithms that AWS KMS supports for this key.
|
String |
toString()
Returns a string representation of this object.
|
GetPublicKeyResult |
withCustomerMasterKeySpec(CustomerMasterKeySpec customerMasterKeySpec)
The type of the of the public key that was downloaded.
|
GetPublicKeyResult |
withCustomerMasterKeySpec(String customerMasterKeySpec)
The type of the of the public key that was downloaded.
|
GetPublicKeyResult |
withEncryptionAlgorithms(Collection<String> encryptionAlgorithms)
The encryption algorithms that AWS KMS supports for this key.
|
GetPublicKeyResult |
withEncryptionAlgorithms(EncryptionAlgorithmSpec... encryptionAlgorithms)
The encryption algorithms that AWS KMS supports for this key.
|
GetPublicKeyResult |
withEncryptionAlgorithms(String... encryptionAlgorithms)
The encryption algorithms that AWS KMS supports for this key.
|
GetPublicKeyResult |
withKeyId(String keyId)
The Amazon Resource Name (key ARN) of the
asymmetric CMK from which the public key was downloaded.
|
GetPublicKeyResult |
withKeyUsage(KeyUsageType keyUsage)
The permitted use of the public key.
|
GetPublicKeyResult |
withKeyUsage(String keyUsage)
The permitted use of the public key.
|
GetPublicKeyResult |
withPublicKey(ByteBuffer publicKey)
The exported public key.
|
GetPublicKeyResult |
withSigningAlgorithms(Collection<String> signingAlgorithms)
The signing algorithms that AWS KMS supports for this key.
|
GetPublicKeyResult |
withSigningAlgorithms(SigningAlgorithmSpec... signingAlgorithms)
The signing algorithms that AWS KMS supports for this key.
|
GetPublicKeyResult |
withSigningAlgorithms(String... signingAlgorithms)
The signing algorithms that AWS KMS supports for this key.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public void setKeyId(String keyId)
The Amazon Resource Name (key ARN) of the asymmetric CMK from which the public key was downloaded.
keyId
- The Amazon Resource Name (key ARN) of
the asymmetric CMK from which the public key was downloaded.public String getKeyId()
The Amazon Resource Name (key ARN) of the asymmetric CMK from which the public key was downloaded.
public GetPublicKeyResult withKeyId(String keyId)
The Amazon Resource Name (key ARN) of the asymmetric CMK from which the public key was downloaded.
keyId
- The Amazon Resource Name (key ARN) of
the asymmetric CMK from which the public key was downloaded.public void setPublicKey(ByteBuffer publicKey)
The exported public key.
The value is a DER-encoded X.509 public key, also known as SubjectPublicKeyInfo
(SPKI), as defined
in RFC 5280. When you use the HTTP API or the AWS CLI, the
value is Base64-encoded. Otherwise, it is not Base64-encoded.
The AWS SDK for Java performs a Base64 encoding on this field before sending this request to the AWS service. Users of the SDK should not perform Base64 encoding on this field.
Warning: ByteBuffers returned by the SDK are mutable. Changes to the content or position of the byte buffer will be seen by all objects that have a reference to this object. It is recommended to call ByteBuffer.duplicate() or ByteBuffer.asReadOnlyBuffer() before using or reading from the buffer. This behavior will be changed in a future major version of the SDK.
publicKey
- The exported public key.
The value is a DER-encoded X.509 public key, also known as SubjectPublicKeyInfo
(SPKI), as
defined in RFC 5280. When you use the HTTP API or the
AWS CLI, the value is Base64-encoded. Otherwise, it is not Base64-encoded.
public ByteBuffer getPublicKey()
The exported public key.
The value is a DER-encoded X.509 public key, also known as SubjectPublicKeyInfo
(SPKI), as defined
in RFC 5280. When you use the HTTP API or the AWS CLI, the
value is Base64-encoded. Otherwise, it is not Base64-encoded.
ByteBuffer
s are stateful. Calling their get
methods changes their position
. We recommend
using ByteBuffer.asReadOnlyBuffer()
to create a read-only view of the buffer with an independent
position
, and calling get
methods on this rather than directly on the returned ByteBuffer
.
Doing so will ensure that anyone else using the ByteBuffer
will not be affected by changes to the
position
.
The value is a DER-encoded X.509 public key, also known as SubjectPublicKeyInfo
(SPKI), as
defined in RFC 5280. When you use the HTTP API or the
AWS CLI, the value is Base64-encoded. Otherwise, it is not Base64-encoded.
public GetPublicKeyResult withPublicKey(ByteBuffer publicKey)
The exported public key.
The value is a DER-encoded X.509 public key, also known as SubjectPublicKeyInfo
(SPKI), as defined
in RFC 5280. When you use the HTTP API or the AWS CLI, the
value is Base64-encoded. Otherwise, it is not Base64-encoded.
The AWS SDK for Java performs a Base64 encoding on this field before sending this request to the AWS service. Users of the SDK should not perform Base64 encoding on this field.
Warning: ByteBuffers returned by the SDK are mutable. Changes to the content or position of the byte buffer will be seen by all objects that have a reference to this object. It is recommended to call ByteBuffer.duplicate() or ByteBuffer.asReadOnlyBuffer() before using or reading from the buffer. This behavior will be changed in a future major version of the SDK.
publicKey
- The exported public key.
The value is a DER-encoded X.509 public key, also known as SubjectPublicKeyInfo
(SPKI), as
defined in RFC 5280. When you use the HTTP API or the
AWS CLI, the value is Base64-encoded. Otherwise, it is not Base64-encoded.
public void setCustomerMasterKeySpec(String customerMasterKeySpec)
The type of the of the public key that was downloaded.
customerMasterKeySpec
- The type of the of the public key that was downloaded.CustomerMasterKeySpec
public String getCustomerMasterKeySpec()
The type of the of the public key that was downloaded.
CustomerMasterKeySpec
public GetPublicKeyResult withCustomerMasterKeySpec(String customerMasterKeySpec)
The type of the of the public key that was downloaded.
customerMasterKeySpec
- The type of the of the public key that was downloaded.CustomerMasterKeySpec
public GetPublicKeyResult withCustomerMasterKeySpec(CustomerMasterKeySpec customerMasterKeySpec)
The type of the of the public key that was downloaded.
customerMasterKeySpec
- The type of the of the public key that was downloaded.CustomerMasterKeySpec
public void setKeyUsage(String keyUsage)
The permitted use of the public key. Valid values are ENCRYPT_DECRYPT
or SIGN_VERIFY
.
This information is critical. If a public key with SIGN_VERIFY
key usage encrypts data outside of
AWS KMS, the ciphertext cannot be decrypted.
keyUsage
- The permitted use of the public key. Valid values are ENCRYPT_DECRYPT
or
SIGN_VERIFY
.
This information is critical. If a public key with SIGN_VERIFY
key usage encrypts data
outside of AWS KMS, the ciphertext cannot be decrypted.
KeyUsageType
public String getKeyUsage()
The permitted use of the public key. Valid values are ENCRYPT_DECRYPT
or SIGN_VERIFY
.
This information is critical. If a public key with SIGN_VERIFY
key usage encrypts data outside of
AWS KMS, the ciphertext cannot be decrypted.
ENCRYPT_DECRYPT
or
SIGN_VERIFY
.
This information is critical. If a public key with SIGN_VERIFY
key usage encrypts data
outside of AWS KMS, the ciphertext cannot be decrypted.
KeyUsageType
public GetPublicKeyResult withKeyUsage(String keyUsage)
The permitted use of the public key. Valid values are ENCRYPT_DECRYPT
or SIGN_VERIFY
.
This information is critical. If a public key with SIGN_VERIFY
key usage encrypts data outside of
AWS KMS, the ciphertext cannot be decrypted.
keyUsage
- The permitted use of the public key. Valid values are ENCRYPT_DECRYPT
or
SIGN_VERIFY
.
This information is critical. If a public key with SIGN_VERIFY
key usage encrypts data
outside of AWS KMS, the ciphertext cannot be decrypted.
KeyUsageType
public GetPublicKeyResult withKeyUsage(KeyUsageType keyUsage)
The permitted use of the public key. Valid values are ENCRYPT_DECRYPT
or SIGN_VERIFY
.
This information is critical. If a public key with SIGN_VERIFY
key usage encrypts data outside of
AWS KMS, the ciphertext cannot be decrypted.
keyUsage
- The permitted use of the public key. Valid values are ENCRYPT_DECRYPT
or
SIGN_VERIFY
.
This information is critical. If a public key with SIGN_VERIFY
key usage encrypts data
outside of AWS KMS, the ciphertext cannot be decrypted.
KeyUsageType
public List<String> getEncryptionAlgorithms()
The encryption algorithms that AWS KMS supports for this key.
This information is critical. If a public key encrypts data outside of AWS KMS by using an unsupported encryption algorithm, the ciphertext cannot be decrypted.
This field appears in the response only when the KeyUsage
of the public key is
ENCRYPT_DECRYPT
.
This information is critical. If a public key encrypts data outside of AWS KMS by using an unsupported encryption algorithm, the ciphertext cannot be decrypted.
This field appears in the response only when the KeyUsage
of the public key is
ENCRYPT_DECRYPT
.
EncryptionAlgorithmSpec
public void setEncryptionAlgorithms(Collection<String> encryptionAlgorithms)
The encryption algorithms that AWS KMS supports for this key.
This information is critical. If a public key encrypts data outside of AWS KMS by using an unsupported encryption algorithm, the ciphertext cannot be decrypted.
This field appears in the response only when the KeyUsage
of the public key is
ENCRYPT_DECRYPT
.
encryptionAlgorithms
- The encryption algorithms that AWS KMS supports for this key.
This information is critical. If a public key encrypts data outside of AWS KMS by using an unsupported encryption algorithm, the ciphertext cannot be decrypted.
This field appears in the response only when the KeyUsage
of the public key is
ENCRYPT_DECRYPT
.
EncryptionAlgorithmSpec
public GetPublicKeyResult withEncryptionAlgorithms(String... encryptionAlgorithms)
The encryption algorithms that AWS KMS supports for this key.
This information is critical. If a public key encrypts data outside of AWS KMS by using an unsupported encryption algorithm, the ciphertext cannot be decrypted.
This field appears in the response only when the KeyUsage
of the public key is
ENCRYPT_DECRYPT
.
NOTE: This method appends the values to the existing list (if any). Use
setEncryptionAlgorithms(java.util.Collection)
or withEncryptionAlgorithms(java.util.Collection)
if you want to override the existing values.
encryptionAlgorithms
- The encryption algorithms that AWS KMS supports for this key.
This information is critical. If a public key encrypts data outside of AWS KMS by using an unsupported encryption algorithm, the ciphertext cannot be decrypted.
This field appears in the response only when the KeyUsage
of the public key is
ENCRYPT_DECRYPT
.
EncryptionAlgorithmSpec
public GetPublicKeyResult withEncryptionAlgorithms(Collection<String> encryptionAlgorithms)
The encryption algorithms that AWS KMS supports for this key.
This information is critical. If a public key encrypts data outside of AWS KMS by using an unsupported encryption algorithm, the ciphertext cannot be decrypted.
This field appears in the response only when the KeyUsage
of the public key is
ENCRYPT_DECRYPT
.
encryptionAlgorithms
- The encryption algorithms that AWS KMS supports for this key.
This information is critical. If a public key encrypts data outside of AWS KMS by using an unsupported encryption algorithm, the ciphertext cannot be decrypted.
This field appears in the response only when the KeyUsage
of the public key is
ENCRYPT_DECRYPT
.
EncryptionAlgorithmSpec
public GetPublicKeyResult withEncryptionAlgorithms(EncryptionAlgorithmSpec... encryptionAlgorithms)
The encryption algorithms that AWS KMS supports for this key.
This information is critical. If a public key encrypts data outside of AWS KMS by using an unsupported encryption algorithm, the ciphertext cannot be decrypted.
This field appears in the response only when the KeyUsage
of the public key is
ENCRYPT_DECRYPT
.
encryptionAlgorithms
- The encryption algorithms that AWS KMS supports for this key.
This information is critical. If a public key encrypts data outside of AWS KMS by using an unsupported encryption algorithm, the ciphertext cannot be decrypted.
This field appears in the response only when the KeyUsage
of the public key is
ENCRYPT_DECRYPT
.
EncryptionAlgorithmSpec
public List<String> getSigningAlgorithms()
The signing algorithms that AWS KMS supports for this key.
This field appears in the response only when the KeyUsage
of the public key is
SIGN_VERIFY
.
This field appears in the response only when the KeyUsage
of the public key is
SIGN_VERIFY
.
SigningAlgorithmSpec
public void setSigningAlgorithms(Collection<String> signingAlgorithms)
The signing algorithms that AWS KMS supports for this key.
This field appears in the response only when the KeyUsage
of the public key is
SIGN_VERIFY
.
signingAlgorithms
- The signing algorithms that AWS KMS supports for this key.
This field appears in the response only when the KeyUsage
of the public key is
SIGN_VERIFY
.
SigningAlgorithmSpec
public GetPublicKeyResult withSigningAlgorithms(String... signingAlgorithms)
The signing algorithms that AWS KMS supports for this key.
This field appears in the response only when the KeyUsage
of the public key is
SIGN_VERIFY
.
NOTE: This method appends the values to the existing list (if any). Use
setSigningAlgorithms(java.util.Collection)
or withSigningAlgorithms(java.util.Collection)
if
you want to override the existing values.
signingAlgorithms
- The signing algorithms that AWS KMS supports for this key.
This field appears in the response only when the KeyUsage
of the public key is
SIGN_VERIFY
.
SigningAlgorithmSpec
public GetPublicKeyResult withSigningAlgorithms(Collection<String> signingAlgorithms)
The signing algorithms that AWS KMS supports for this key.
This field appears in the response only when the KeyUsage
of the public key is
SIGN_VERIFY
.
signingAlgorithms
- The signing algorithms that AWS KMS supports for this key.
This field appears in the response only when the KeyUsage
of the public key is
SIGN_VERIFY
.
SigningAlgorithmSpec
public GetPublicKeyResult withSigningAlgorithms(SigningAlgorithmSpec... signingAlgorithms)
The signing algorithms that AWS KMS supports for this key.
This field appears in the response only when the KeyUsage
of the public key is
SIGN_VERIFY
.
signingAlgorithms
- The signing algorithms that AWS KMS supports for this key.
This field appears in the response only when the KeyUsage
of the public key is
SIGN_VERIFY
.
SigningAlgorithmSpec
public String toString()
toString
in class Object
Object.toString()
public GetPublicKeyResult clone()
Copyright © 2020. All rights reserved.