Class VerificationInfo
Information about verification operation, including the computed signature
base and the verification result.
- Since:
- 1.5
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the reason of the verification result.Get the verification key used in the verification operation.boolean
Get the result of the verification operation.Set the reason of the verification result.setVerificationKey
(JWK key) Set the verification key used in the verification operation.setVerified
(boolean verified) Set the result of the verification operation.Methods inherited from class com.authlete.hms.SignatureOperationInfo
getMetadata, getSerializedSignature, getSerializedSignatureMetadata, getSignature, getSignatureBase, setSignature, setSignatureBase
-
Constructor Details
-
VerificationInfo
public VerificationInfo()
-
-
Method Details
-
getVerificationKey
Get the verification key used in the verification operation.- Returns:
- The verification key.
-
setVerificationKey
Set the verification key used in the verification operation.- Parameters:
key
- The verification key.- Returns:
this
object.
-
isVerified
public boolean isVerified()Get the result of the verification operation.- Returns:
- The result of the verification operation.
-
setVerified
Set the result of the verification operation.- Parameters:
verified
- The result of the verification operation.- Returns:
this
object.
-
getReason
Get the reason of the verification result.- Returns:
- The reason of the verification result.
-
setReason
Set the reason of the verification result.- Parameters:
reason
- The reason of the verification result.- Returns:
this
object.
-