Class SignatureOperationInfo<T extends SignatureOperationInfo<T>>
java.lang.Object
com.authlete.hms.SignatureOperationInfo<T>
- Type Parameters:
T
- The subclass.
- Direct Known Subclasses:
SigningInfo
,VerificationInfo
The base class for
SigningInfo
and VerificationInfo
.- Since:
- 1.5
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the signature metadata.Get the signature in the serialized form.Get the signature metadata in the serialized form.byte[]
Get the signature.Get the computed signature base.setSignature
(byte[] signature) Set the signature.Set the computed signature base.
-
Constructor Details
-
SignatureOperationInfo
public SignatureOperationInfo()
-
-
Method Details
-
getSignatureBase
Get the computed signature base.- Returns:
- The computed signature base.
-
setSignatureBase
Set the computed signature base.- Parameters:
base
- The computed signature base.- Returns:
this
object.
-
getMetadata
-
getSerializedSignatureMetadata
Get the signature metadata in the serialized form. The value can be used as part of theSignature-Input
HTTP field value.Sample Code
String signatureInputFieldValue = String.format("sig=%s", info.getSerializedSignatureMetadata()); responseBuilder.header( "Signature-Input", signatureInputFieldValue);
- Returns:
- The signature metadata in the serialized form.
-
getSignature
public byte[] getSignature()Get the signature.- Returns:
- The signature.
-
setSignature
Set the signature.- Parameters:
signature
- The signature.- Returns:
this
object.
-
getSerializedSignature
Get the signature in the serialized form. The value can be used as part of theSignature
HTTP field value.Sample Code
String signatureFieldValue = String.format("sig=%s", info.getSerializedSignature()); responseBuilder.header( "Signature", signatureFieldValue);
- Returns:
- The signature in the serialized form.
-