public interface JWSSigner extends JWSAlgorithmProvider
Callers can query the signer to determine its algorithm capabilities.
| Modifier and Type | Method and Description |
|---|---|
Base64URL |
sign(ReadOnlyJWSHeader header,
byte[] signableContent)
Signs the specified
signable
content of a JWS object. |
supportedAlgorithmsBase64URL sign(ReadOnlyJWSHeader header, byte[] signableContent) throws JOSEException
signable
content of a JWS object.header - The JSON Web Signature (JWS) header. Must
specify a supported JWS algorithm and must not
be null.signableContent - The content to sign. Must not be null.JOSEException - If the JWS algorithm is not supported or if
signing failed for some other reason.Copyright © 2013 NimbusDS. All Rights Reserved.