public class VerifyResult
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
VerifyResult() |
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 verify the
signature.
|
java.lang.Boolean |
getSignatureValid()
A Boolean value that indicates whether the signature was verified.
|
java.lang.String |
getSigningAlgorithm()
The signing algorithm that was used to verify the signature.
|
int |
hashCode() |
java.lang.Boolean |
isSignatureValid()
A Boolean value that indicates whether the signature was verified.
|
void |
setKeyId(java.lang.String keyId)
The Amazon Resource Name (key ARN) of the asymmetric CMK that was used to verify the
signature.
|
void |
setSignatureValid(java.lang.Boolean signatureValid)
A Boolean value that indicates whether the signature was verified.
|
void |
setSigningAlgorithm(SigningAlgorithmSpec signingAlgorithm)
The signing algorithm that was used to verify the signature.
|
void |
setSigningAlgorithm(java.lang.String signingAlgorithm)
The signing algorithm that was used to verify the signature.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
VerifyResult |
withKeyId(java.lang.String keyId)
The Amazon Resource Name (key ARN) of the asymmetric CMK that was used to verify the
signature.
|
VerifyResult |
withSignatureValid(java.lang.Boolean signatureValid)
A Boolean value that indicates whether the signature was verified.
|
VerifyResult |
withSigningAlgorithm(SigningAlgorithmSpec signingAlgorithm)
The signing algorithm that was used to verify the signature.
|
VerifyResult |
withSigningAlgorithm(java.lang.String signingAlgorithm)
The signing algorithm that was used to verify the signature.
|
public java.lang.String getKeyId()
The Amazon Resource Name (key ARN) of the asymmetric CMK that was used to verify the signature.
Constraints:
Length: 1 - 2048
The Amazon Resource Name (key ARN) of the asymmetric CMK that was used to verify the signature.
public void setKeyId(java.lang.String keyId)
The Amazon Resource Name (key ARN) of the asymmetric CMK that was used to verify the signature.
Constraints:
Length: 1 - 2048
keyId
- The Amazon Resource Name (key ARN) of the asymmetric CMK that was used to verify the signature.
public VerifyResult withKeyId(java.lang.String keyId)
The Amazon Resource Name (key ARN) of the asymmetric CMK that was used to verify the signature.
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 verify the signature.
public java.lang.Boolean isSignatureValid()
A Boolean value that indicates whether the signature was verified. A
value of True
indicates that the Signature
was
produced by signing the Message
with the specified
KeyID
and SigningAlgorithm.
If the signature is
not verified, the Verify
operation fails with a
KMSInvalidSignatureException
exception.
A Boolean value that indicates whether the signature was
verified. A value of True
indicates that the
Signature
was produced by signing the
Message
with the specified KeyID
and
SigningAlgorithm.
If the signature is not verified,
the Verify
operation fails with a
KMSInvalidSignatureException
exception.
public java.lang.Boolean getSignatureValid()
A Boolean value that indicates whether the signature was verified. A
value of True
indicates that the Signature
was
produced by signing the Message
with the specified
KeyID
and SigningAlgorithm.
If the signature is
not verified, the Verify
operation fails with a
KMSInvalidSignatureException
exception.
A Boolean value that indicates whether the signature was
verified. A value of True
indicates that the
Signature
was produced by signing the
Message
with the specified KeyID
and
SigningAlgorithm.
If the signature is not verified,
the Verify
operation fails with a
KMSInvalidSignatureException
exception.
public void setSignatureValid(java.lang.Boolean signatureValid)
A Boolean value that indicates whether the signature was verified. A
value of True
indicates that the Signature
was
produced by signing the Message
with the specified
KeyID
and SigningAlgorithm.
If the signature is
not verified, the Verify
operation fails with a
KMSInvalidSignatureException
exception.
signatureValid
-
A Boolean value that indicates whether the signature was
verified. A value of True
indicates that the
Signature
was produced by signing the
Message
with the specified KeyID
and
SigningAlgorithm.
If the signature is not
verified, the Verify
operation fails with a
KMSInvalidSignatureException
exception.
public VerifyResult withSignatureValid(java.lang.Boolean signatureValid)
A Boolean value that indicates whether the signature was verified. A
value of True
indicates that the Signature
was
produced by signing the Message
with the specified
KeyID
and SigningAlgorithm.
If the signature is
not verified, the Verify
operation fails with a
KMSInvalidSignatureException
exception.
Returns a reference to this object so that method calls can be chained together.
signatureValid
-
A Boolean value that indicates whether the signature was
verified. A value of True
indicates that the
Signature
was produced by signing the
Message
with the specified KeyID
and
SigningAlgorithm.
If the signature is not
verified, the Verify
operation fails with a
KMSInvalidSignatureException
exception.
public java.lang.String getSigningAlgorithm()
The signing algorithm that was used to verify the signature.
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 verify the signature.
SigningAlgorithmSpec
public void setSigningAlgorithm(java.lang.String signingAlgorithm)
The signing algorithm that was used to verify the signature.
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 verify the signature.
SigningAlgorithmSpec
public VerifyResult withSigningAlgorithm(java.lang.String signingAlgorithm)
The signing algorithm that was used to verify the signature.
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 verify the signature.
SigningAlgorithmSpec
public void setSigningAlgorithm(SigningAlgorithmSpec signingAlgorithm)
The signing algorithm that was used to verify the signature.
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 verify the signature.
SigningAlgorithmSpec
public VerifyResult withSigningAlgorithm(SigningAlgorithmSpec signingAlgorithm)
The signing algorithm that was used to verify the signature.
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 verify the signature.
SigningAlgorithmSpec
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.