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$ (2012-10-04)
Author:
Vladimir Dzhuvinov

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

Method Detail

sign

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

Parameters:
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.
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.