com.nimbusds.jose
Interface JWSSigner

All Superinterfaces:
JWSAlgorithmProvider
All Known Implementing Classes:
ECDSASigner, MACSigner, RSASSASigner

public interface JWSSigner
extends JWSAlgorithmProvider

Interface for signing JSON Web Signature (JWS) objects.

Callers can query the signer to determine its algorithm capabilities.

Version:
$version$ (2013-05-04)
Author:
Vladimir Dzhuvinov

Method Summary
 Base64URL sign(ReadOnlyJWSHeader header, byte[] signingInput)
          Signs the specified input of a JWS object.
 
Methods inherited from interface com.nimbusds.jose.JWSAlgorithmProvider
supportedAlgorithms
 

Method Detail

sign

Base64URL sign(ReadOnlyJWSHeader header,
               byte[] signingInput)
               throws JOSEException
Signs the specified input of a JWS object.

Parameters:
header - The JSON Web Signature (JWS) header. Must specify a supported JWS algorithm and must not be null.
signingInput - The input to sign. Must not be null.
Returns:
The resulting signature part (third part) of the JWS object.
Throws:
JOSEException - If the JWS algorithm is not supported or if signing failed for some other reason.


Copyright © 2013 NimbusDS. All Rights Reserved.