@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 identifier 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 identifier 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 identifier 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, setSdkResponseMetadatapublic void setKeyId(String keyId)
The identifier of the asymmetric CMK from which the public key was downloaded.
keyId - The identifier of the asymmetric CMK from which the public key was downloaded.public String getKeyId()
The identifier of the asymmetric CMK from which the public key was downloaded.
public GetPublicKeyResult withKeyId(String keyId)
The identifier of the asymmetric CMK from which the public key was downloaded.
keyId - The identifier 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.
 
 ByteBuffers 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.CustomerMasterKeySpecpublic String getCustomerMasterKeySpec()
The type of the of the public key that was downloaded.
CustomerMasterKeySpecpublic 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.CustomerMasterKeySpecpublic 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.CustomerMasterKeySpecpublic 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.
KeyUsageTypepublic 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.
KeyUsageTypepublic 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.
KeyUsageTypepublic 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.
KeyUsageTypepublic 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.
EncryptionAlgorithmSpecpublic 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.
EncryptionAlgorithmSpecpublic 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.
EncryptionAlgorithmSpecpublic 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.
EncryptionAlgorithmSpecpublic 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.
EncryptionAlgorithmSpecpublic 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.
SigningAlgorithmSpecpublic 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.
SigningAlgorithmSpecpublic 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.
SigningAlgorithmSpecpublic 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.
SigningAlgorithmSpecpublic 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.
SigningAlgorithmSpecpublic String toString()
toString in class ObjectObject.toString()public GetPublicKeyResult clone()
Copyright © 2020. All rights reserved.