public class GetPublicKeyResult extends Object implements Serializable
| Constructor and Description |
|---|
GetPublicKeyResult() |
| Modifier and Type | Method and Description |
|---|---|
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(CustomerMasterKeySpec customerMasterKeySpec)
The type of the of the public key that was downloaded.
|
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(KeyUsageType keyUsage)
The permitted use of the public key.
|
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; useful for testing and
debugging.
|
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(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(String... signingAlgorithms)
The signing algorithms that AWS KMS supports for this key.
|
public String getKeyId()
The identifier of the asymmetric CMK from which the public key was downloaded.
Constraints:
Length: 1 - 2048
The identifier of the asymmetric CMK from which the public key was downloaded.
public void setKeyId(String keyId)
The identifier of the asymmetric CMK from which the public key was downloaded.
Constraints:
Length: 1 - 2048
keyId - 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.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 2048
keyId - The identifier of the asymmetric CMK from which the public key was downloaded.
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.
Constraints:
Length: 1 - 8192
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 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.
Constraints:
Length: 1 - 8192
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 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.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 8192
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 String getCustomerMasterKeySpec()
The type of the of the public key that was downloaded.
Constraints:
Allowed Values: RSA_2048, RSA_3072, RSA_4096, ECC_NIST_P256,
ECC_NIST_P384, ECC_NIST_P521, ECC_SECG_P256K1, SYMMETRIC_DEFAULT
The type of the of the public key that was downloaded.
CustomerMasterKeySpecpublic void setCustomerMasterKeySpec(String customerMasterKeySpec)
The type of the of the public key that was downloaded.
Constraints:
Allowed Values: RSA_2048, RSA_3072, RSA_4096, ECC_NIST_P256,
ECC_NIST_P384, ECC_NIST_P521, ECC_SECG_P256K1, SYMMETRIC_DEFAULT
customerMasterKeySpec - 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.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: RSA_2048, RSA_3072, RSA_4096, ECC_NIST_P256,
ECC_NIST_P384, ECC_NIST_P521, ECC_SECG_P256K1, SYMMETRIC_DEFAULT
customerMasterKeySpec - The type of the of the public key that was downloaded.
CustomerMasterKeySpecpublic void setCustomerMasterKeySpec(CustomerMasterKeySpec customerMasterKeySpec)
The type of the of the public key that was downloaded.
Constraints:
Allowed Values: RSA_2048, RSA_3072, RSA_4096, ECC_NIST_P256,
ECC_NIST_P384, ECC_NIST_P521, ECC_SECG_P256K1, SYMMETRIC_DEFAULT
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.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: RSA_2048, RSA_3072, RSA_4096, ECC_NIST_P256,
ECC_NIST_P384, ECC_NIST_P521, ECC_SECG_P256K1, SYMMETRIC_DEFAULT
customerMasterKeySpec - The type of the of the public key that was downloaded.
CustomerMasterKeySpecpublic 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.
Constraints:
Allowed Values: SIGN_VERIFY, ENCRYPT_DECRYPT
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 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.
Constraints:
Allowed Values: SIGN_VERIFY, ENCRYPT_DECRYPT
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(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.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: SIGN_VERIFY, ENCRYPT_DECRYPT
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 void setKeyUsage(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.
Constraints:
Allowed Values: SIGN_VERIFY, ENCRYPT_DECRYPT
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.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: SIGN_VERIFY, ENCRYPT_DECRYPT
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.
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.
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.
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.
Returns a reference to this object so that method calls can be chained together.
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.
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.
Returns a reference to this object so that method calls can be chained together.
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.
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.
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.
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.
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.
Returns a reference to this object so that method calls can be chained together.
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.
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.
Returns a reference to this object so that method calls can be chained together.
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.
public String toString()
toString in class ObjectObject.toString()Copyright © 2020. All rights reserved.