Package com.nimbusds.jose
Interface JWSSigner
-
- All Superinterfaces:
JCAAware<JCAContext>,JOSEProvider,JWSProvider
- All Known Implementing Classes:
ECDSASigner,Ed25519Signer,MACSigner,RSASSASigner
public interface JWSSigner extends JWSProvider
JSON Web Signature (JWS) signer.- Version:
- 2015-04-21
- Author:
- Vladimir Dzhuvinov
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Base64URLsign(JWSHeader header, byte[] signingInput)Signs the specifiedinputof aJWS object.-
Methods inherited from interface com.nimbusds.jose.jca.JCAAware
getJCAContext
-
Methods inherited from interface com.nimbusds.jose.JWSProvider
supportedJWSAlgorithms
-
-
-
-
Method Detail
-
sign
Base64URL sign(JWSHeader header, byte[] signingInput) throws JOSEException
Signs the specifiedinputof aJWS object.- Parameters:
header- The JSON Web Signature (JWS) header. Must specify a supported JWS algorithm and must not benull.signingInput- The input to sign. Must not benull.- Returns:
- The resulting signature part (third part) of the JWS object.
- Throws:
JOSEException- If the JWS algorithm is not supported, if a critical header parameter is not supported or marked for deferral to the application, or if signing failed for some other internal reason.
-
-