Interface SignatureEnd
- All Known Implementing Classes:
JWS.Signature
public interface SignatureEnd
Defines the final step within the workflow of the Fluent API regarding the generation of signatures.
- Author:
- Christof Reichardt
-
Method Summary
Modifier and TypeMethodDescriptionsign()Uses the gathered information to create a JSON Web Signature.sign(Json2StringConverter converter) Uses the gathered information to create a JSON Web Signature.
-
Method Details
-
sign
Uses the gathered information to create a JSON Web Signature.- Returns:
- a
JWSCompactSerialization - Throws:
GeneralSecurityException- passed through from the underlying implementations of the algorithms by the JDK
-
sign
Uses the gathered information to create a JSON Web Signature. The providedJson2StringConverteris used to predictably format the JSON input prior to generating the signature.- Parameters:
converter- the to be usedJson2StringConverter- Returns:
- a
JWSCompactSerialization - Throws:
GeneralSecurityException- passed through from the underlying implementations of the algorithms by the JDK
-