public class GenerateDataKeyPairResult
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
GenerateDataKeyPairResult() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getKeyId()
The Amazon Resource Name (key ARN) of the CMK that encrypted the private key.
|
java.lang.String |
getKeyPairSpec()
The type of data key pair that was generated.
|
java.nio.ByteBuffer |
getPrivateKeyCiphertextBlob()
The encrypted copy of the private key.
|
java.nio.ByteBuffer |
getPrivateKeyPlaintext()
The plaintext copy of the private key.
|
java.nio.ByteBuffer |
getPublicKey()
The public key (in plaintext).
|
int |
hashCode() |
void |
setKeyId(java.lang.String keyId)
The Amazon Resource Name (key ARN) of the CMK that encrypted the private key.
|
void |
setKeyPairSpec(DataKeyPairSpec keyPairSpec)
The type of data key pair that was generated.
|
void |
setKeyPairSpec(java.lang.String keyPairSpec)
The type of data key pair that was generated.
|
void |
setPrivateKeyCiphertextBlob(java.nio.ByteBuffer privateKeyCiphertextBlob)
The encrypted copy of the private key.
|
void |
setPrivateKeyPlaintext(java.nio.ByteBuffer privateKeyPlaintext)
The plaintext copy of the private key.
|
void |
setPublicKey(java.nio.ByteBuffer publicKey)
The public key (in plaintext).
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
GenerateDataKeyPairResult |
withKeyId(java.lang.String keyId)
The Amazon Resource Name (key ARN) of the CMK that encrypted the private key.
|
GenerateDataKeyPairResult |
withKeyPairSpec(DataKeyPairSpec keyPairSpec)
The type of data key pair that was generated.
|
GenerateDataKeyPairResult |
withKeyPairSpec(java.lang.String keyPairSpec)
The type of data key pair that was generated.
|
GenerateDataKeyPairResult |
withPrivateKeyCiphertextBlob(java.nio.ByteBuffer privateKeyCiphertextBlob)
The encrypted copy of the private key.
|
GenerateDataKeyPairResult |
withPrivateKeyPlaintext(java.nio.ByteBuffer privateKeyPlaintext)
The plaintext copy of the private key.
|
GenerateDataKeyPairResult |
withPublicKey(java.nio.ByteBuffer publicKey)
The public key (in plaintext).
|
public java.nio.ByteBuffer getPrivateKeyCiphertextBlob()
The encrypted copy of the private key. When you use the HTTP API or the AWS CLI, the value is Base64-encoded. Otherwise, it is not Base64-encoded.
Constraints:
Length: 1 - 6144
The encrypted copy of the private key. When you use the HTTP API or the AWS CLI, the value is Base64-encoded. Otherwise, it is not Base64-encoded.
public void setPrivateKeyCiphertextBlob(java.nio.ByteBuffer privateKeyCiphertextBlob)
The encrypted copy of the private key. When you use the HTTP API or the AWS CLI, the value is Base64-encoded. Otherwise, it is not Base64-encoded.
Constraints:
Length: 1 - 6144
privateKeyCiphertextBlob
- The encrypted copy of the private key. When you use the HTTP API or the AWS CLI, the value is Base64-encoded. Otherwise, it is not Base64-encoded.
public GenerateDataKeyPairResult withPrivateKeyCiphertextBlob(java.nio.ByteBuffer privateKeyCiphertextBlob)
The encrypted copy of the private key. 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 - 6144
privateKeyCiphertextBlob
- The encrypted copy of the private key. When you use the HTTP API or the AWS CLI, the value is Base64-encoded. Otherwise, it is not Base64-encoded.
public java.nio.ByteBuffer getPrivateKeyPlaintext()
The plaintext copy of the private key. When you use the HTTP API or the AWS CLI, the value is Base64-encoded. Otherwise, it is not Base64-encoded.
Constraints:
Length: 1 - 4096
The plaintext copy of the private key. When you use the HTTP API or the AWS CLI, the value is Base64-encoded. Otherwise, it is not Base64-encoded.
public void setPrivateKeyPlaintext(java.nio.ByteBuffer privateKeyPlaintext)
The plaintext copy of the private key. When you use the HTTP API or the AWS CLI, the value is Base64-encoded. Otherwise, it is not Base64-encoded.
Constraints:
Length: 1 - 4096
privateKeyPlaintext
- The plaintext copy of the private key. When you use the HTTP API or the AWS CLI, the value is Base64-encoded. Otherwise, it is not Base64-encoded.
public GenerateDataKeyPairResult withPrivateKeyPlaintext(java.nio.ByteBuffer privateKeyPlaintext)
The plaintext copy of the private key. 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 - 4096
privateKeyPlaintext
- The plaintext copy of the private key. When you use the HTTP API or the AWS CLI, the value is Base64-encoded. Otherwise, it is not Base64-encoded.
public java.nio.ByteBuffer getPublicKey()
The public key (in plaintext).
Constraints:
Length: 1 - 8192
The public key (in plaintext).
public void setPublicKey(java.nio.ByteBuffer publicKey)
The public key (in plaintext).
Constraints:
Length: 1 - 8192
publicKey
- The public key (in plaintext).
public GenerateDataKeyPairResult withPublicKey(java.nio.ByteBuffer publicKey)
The public key (in plaintext).
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 8192
publicKey
- The public key (in plaintext).
public java.lang.String getKeyId()
The Amazon Resource Name (key ARN) of the CMK that encrypted the private key.
Constraints:
Length: 1 - 2048
The Amazon Resource Name (key ARN) of the CMK that encrypted the private key.
public void setKeyId(java.lang.String keyId)
The Amazon Resource Name (key ARN) of the CMK that encrypted the private key.
Constraints:
Length: 1 - 2048
keyId
- The Amazon Resource Name (key ARN) of the CMK that encrypted the private key.
public GenerateDataKeyPairResult withKeyId(java.lang.String keyId)
The Amazon Resource Name (key ARN) of the CMK that encrypted the private key.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 2048
keyId
- The Amazon Resource Name (key ARN) of the CMK that encrypted the private key.
public java.lang.String getKeyPairSpec()
The type of data key pair that was generated.
Constraints:
Allowed Values: RSA_2048, RSA_3072, RSA_4096, ECC_NIST_P256,
ECC_NIST_P384, ECC_NIST_P521, ECC_SECG_P256K1
The type of data key pair that was generated.
DataKeyPairSpec
public void setKeyPairSpec(java.lang.String keyPairSpec)
The type of data key pair that was generated.
Constraints:
Allowed Values: RSA_2048, RSA_3072, RSA_4096, ECC_NIST_P256,
ECC_NIST_P384, ECC_NIST_P521, ECC_SECG_P256K1
keyPairSpec
- The type of data key pair that was generated.
DataKeyPairSpec
public GenerateDataKeyPairResult withKeyPairSpec(java.lang.String keyPairSpec)
The type of data key pair that was generated.
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
keyPairSpec
- The type of data key pair that was generated.
DataKeyPairSpec
public void setKeyPairSpec(DataKeyPairSpec keyPairSpec)
The type of data key pair that was generated.
Constraints:
Allowed Values: RSA_2048, RSA_3072, RSA_4096, ECC_NIST_P256,
ECC_NIST_P384, ECC_NIST_P521, ECC_SECG_P256K1
keyPairSpec
- The type of data key pair that was generated.
DataKeyPairSpec
public GenerateDataKeyPairResult withKeyPairSpec(DataKeyPairSpec keyPairSpec)
The type of data key pair that was generated.
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
keyPairSpec
- The type of data key pair that was generated.
DataKeyPairSpec
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.