Interface GordianSignature
- All Superinterfaces:
GordianConsumer
GordianKnot base for signature.
-
Method Summary
Modifier and TypeMethodDescriptionObtain the signatureSpec.voidinitForSigning(GordianSignParams pParams) Initialise for signature.voidinitForVerify(GordianSignParams pParams) Initialise for verify.byte[]sign()Complete the signature operation and return the signature bytes.booleanverify(byte[] pSignature) Verify the signature against the supplied signature bytes.Methods inherited from interface io.github.tonywasher.joceanus.gordianknot.api.base.GordianConsumer
reset, update, update, update
-
Method Details
-
getSignatureSpec
GordianSignatureSpec getSignatureSpec()Obtain the signatureSpec.- Returns:
- the Spec
-
initForSigning
Initialise for signature.- Parameters:
pParams- the parameters- Throws:
GordianException- on error
-
initForVerify
Initialise for verify.- Parameters:
pParams- the parameters- Throws:
GordianException- on error
-
sign
Complete the signature operation and return the signature bytes.- Returns:
- the signature
- Throws:
GordianException- on error
-
verify
Verify the signature against the supplied signature bytes.- Parameters:
pSignature- the supplied signature- Returns:
- the signature
- Throws:
GordianException- on error
-