public class SignResult
extends java.lang.Object
implements java.io.Serializable
| Constructor and Description |
|---|
SignResult() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getKeyId()
The Amazon Resource Name (key ARN) of the asymmetric CMK that was used to sign the message.
|
java.nio.ByteBuffer |
getSignature()
The cryptographic signature that was generated for the message.
|
java.lang.String |
getSigningAlgorithm()
The signing algorithm that was used to sign the message.
|
int |
hashCode() |
void |
setKeyId(java.lang.String keyId)
The Amazon Resource Name (key ARN) of the asymmetric CMK that was used to sign the message.
|
void |
setSignature(java.nio.ByteBuffer signature)
The cryptographic signature that was generated for the message.
|
void |
setSigningAlgorithm(SigningAlgorithmSpec signingAlgorithm)
The signing algorithm that was used to sign the message.
|
void |
setSigningAlgorithm(java.lang.String signingAlgorithm)
The signing algorithm that was used to sign the message.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
SignResult |
withKeyId(java.lang.String keyId)
The Amazon Resource Name (key ARN) of the asymmetric CMK that was used to sign the message.
|
SignResult |
withSignature(java.nio.ByteBuffer signature)
The cryptographic signature that was generated for the message.
|
SignResult |
withSigningAlgorithm(SigningAlgorithmSpec signingAlgorithm)
The signing algorithm that was used to sign the message.
|
SignResult |
withSigningAlgorithm(java.lang.String signingAlgorithm)
The signing algorithm that was used to sign the message.
|
public java.lang.String getKeyId()
The Amazon Resource Name (key ARN) of the asymmetric CMK that was used to sign the message.
Constraints:
Length: 1 - 2048
The Amazon Resource Name (key ARN) of the asymmetric CMK that was used to sign the message.
public void setKeyId(java.lang.String keyId)
The Amazon Resource Name (key ARN) of the asymmetric CMK that was used to sign the message.
Constraints:
Length: 1 - 2048
keyId - The Amazon Resource Name (key ARN) of the asymmetric CMK that was used to sign the message.
public SignResult withKeyId(java.lang.String keyId)
The Amazon Resource Name (key ARN) of the asymmetric CMK that was used to sign the message.
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 asymmetric CMK that was used to sign the message.
public java.nio.ByteBuffer getSignature()
The cryptographic signature that was generated for the message.
When used with the supported RSA signing algorithms, the encoding of this value is defined by PKCS #1 in RFC 8017.
When used with the ECDSA_SHA_256, ECDSA_SHA_384
, or ECDSA_SHA_512 signing algorithms, this value is a
DER-encoded object as defined by ANS X9.62–2005 and RFC 3279 Section
2.2.3. This is the most commonly used signature format and is
appropriate for most uses.
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 cryptographic signature that was generated for the message.
When used with the supported RSA signing algorithms, the encoding of this value is defined by PKCS #1 in RFC 8017.
When used with the ECDSA_SHA_256,
ECDSA_SHA_384, or ECDSA_SHA_512 signing
algorithms, this value is a DER-encoded object as defined by ANS
X9.62–2005 and RFC 3279
Section 2.2.3. This is the most commonly used signature
format and is appropriate for most uses.
When you use the HTTP API or the AWS CLI, the value is Base64-encoded. Otherwise, it is not Base64-encoded.
public void setSignature(java.nio.ByteBuffer signature)
The cryptographic signature that was generated for the message.
When used with the supported RSA signing algorithms, the encoding of this value is defined by PKCS #1 in RFC 8017.
When used with the ECDSA_SHA_256, ECDSA_SHA_384
, or ECDSA_SHA_512 signing algorithms, this value is a
DER-encoded object as defined by ANS X9.62–2005 and RFC 3279 Section
2.2.3. This is the most commonly used signature format and is
appropriate for most uses.
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
signature - The cryptographic signature that was generated for the message.
When used with the supported RSA signing algorithms, the encoding of this value is defined by PKCS #1 in RFC 8017.
When used with the ECDSA_SHA_256,
ECDSA_SHA_384, or ECDSA_SHA_512
signing algorithms, this value is a DER-encoded object as
defined by ANS X9.62–2005 and RFC
3279 Section 2.2.3. This is the most commonly used
signature format and is appropriate for most uses.
When you use the HTTP API or the AWS CLI, the value is Base64-encoded. Otherwise, it is not Base64-encoded.
public SignResult withSignature(java.nio.ByteBuffer signature)
The cryptographic signature that was generated for the message.
When used with the supported RSA signing algorithms, the encoding of this value is defined by PKCS #1 in RFC 8017.
When used with the ECDSA_SHA_256, ECDSA_SHA_384
, or ECDSA_SHA_512 signing algorithms, this value is a
DER-encoded object as defined by ANS X9.62–2005 and RFC 3279 Section
2.2.3. This is the most commonly used signature format and is
appropriate for most uses.
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
signature - The cryptographic signature that was generated for the message.
When used with the supported RSA signing algorithms, the encoding of this value is defined by PKCS #1 in RFC 8017.
When used with the ECDSA_SHA_256,
ECDSA_SHA_384, or ECDSA_SHA_512
signing algorithms, this value is a DER-encoded object as
defined by ANS X9.62–2005 and RFC
3279 Section 2.2.3. This is the most commonly used
signature format and is appropriate for most uses.
When you use the HTTP API or the AWS CLI, the value is Base64-encoded. Otherwise, it is not Base64-encoded.
public java.lang.String getSigningAlgorithm()
The signing algorithm that was used to sign the message.
Constraints:
Allowed Values: RSASSA_PSS_SHA_256, RSASSA_PSS_SHA_384,
RSASSA_PSS_SHA_512, RSASSA_PKCS1_V1_5_SHA_256, RSASSA_PKCS1_V1_5_SHA_384,
RSASSA_PKCS1_V1_5_SHA_512, ECDSA_SHA_256, ECDSA_SHA_384, ECDSA_SHA_512
The signing algorithm that was used to sign the message.
SigningAlgorithmSpecpublic void setSigningAlgorithm(java.lang.String signingAlgorithm)
The signing algorithm that was used to sign the message.
Constraints:
Allowed Values: RSASSA_PSS_SHA_256, RSASSA_PSS_SHA_384,
RSASSA_PSS_SHA_512, RSASSA_PKCS1_V1_5_SHA_256, RSASSA_PKCS1_V1_5_SHA_384,
RSASSA_PKCS1_V1_5_SHA_512, ECDSA_SHA_256, ECDSA_SHA_384, ECDSA_SHA_512
signingAlgorithm - The signing algorithm that was used to sign the message.
SigningAlgorithmSpecpublic SignResult withSigningAlgorithm(java.lang.String signingAlgorithm)
The signing algorithm that was used to sign the message.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: RSASSA_PSS_SHA_256, RSASSA_PSS_SHA_384,
RSASSA_PSS_SHA_512, RSASSA_PKCS1_V1_5_SHA_256, RSASSA_PKCS1_V1_5_SHA_384,
RSASSA_PKCS1_V1_5_SHA_512, ECDSA_SHA_256, ECDSA_SHA_384, ECDSA_SHA_512
signingAlgorithm - The signing algorithm that was used to sign the message.
SigningAlgorithmSpecpublic void setSigningAlgorithm(SigningAlgorithmSpec signingAlgorithm)
The signing algorithm that was used to sign the message.
Constraints:
Allowed Values: RSASSA_PSS_SHA_256, RSASSA_PSS_SHA_384,
RSASSA_PSS_SHA_512, RSASSA_PKCS1_V1_5_SHA_256, RSASSA_PKCS1_V1_5_SHA_384,
RSASSA_PKCS1_V1_5_SHA_512, ECDSA_SHA_256, ECDSA_SHA_384, ECDSA_SHA_512
signingAlgorithm - The signing algorithm that was used to sign the message.
SigningAlgorithmSpecpublic SignResult withSigningAlgorithm(SigningAlgorithmSpec signingAlgorithm)
The signing algorithm that was used to sign the message.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: RSASSA_PSS_SHA_256, RSASSA_PSS_SHA_384,
RSASSA_PSS_SHA_512, RSASSA_PKCS1_V1_5_SHA_256, RSASSA_PKCS1_V1_5_SHA_384,
RSASSA_PKCS1_V1_5_SHA_512, ECDSA_SHA_256, ECDSA_SHA_384, ECDSA_SHA_512
signingAlgorithm - The signing algorithm that was used to sign the message.
SigningAlgorithmSpecpublic java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.ObjectCopyright © 2018 Amazon Web Services, Inc. All Rights Reserved.