org.apache.cxf.rs.security.jose.jws
Class AbstractJwsSignatureProvider

java.lang.Object
  extended by org.apache.cxf.rs.security.jose.jws.AbstractJwsSignatureProvider
All Implemented Interfaces:
JwsSignatureProvider
Direct Known Subclasses:
HmacJwsSignatureProvider, PrivateKeyJwsSignatureProvider

public abstract class AbstractJwsSignatureProvider
extends Object
implements JwsSignatureProvider


Constructor Summary
protected AbstractJwsSignatureProvider(String algo)
           
 
Method Summary
protected  void checkAlgorithm(String algo)
           
 JwsSignature createJwsSignature(JoseHeaders headers)
          Create a signature handler capable of updating the signature input (optional operation)
protected abstract  JwsSignature doCreateJwsSignature(JoseHeaders headers)
           
 String getAlgorithm()
           
protected  JoseHeaders prepareHeaders(JoseHeaders headers)
           
 byte[] sign(JoseHeaders headers, byte[] content)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractJwsSignatureProvider

protected AbstractJwsSignatureProvider(String algo)
Method Detail

prepareHeaders

protected JoseHeaders prepareHeaders(JoseHeaders headers)

getAlgorithm

public String getAlgorithm()
Specified by:
getAlgorithm in interface JwsSignatureProvider

sign

public byte[] sign(JoseHeaders headers,
                   byte[] content)
Specified by:
sign in interface JwsSignatureProvider

createJwsSignature

public JwsSignature createJwsSignature(JoseHeaders headers)
Description copied from interface: JwsSignatureProvider
Create a signature handler capable of updating the signature input (optional operation)

Specified by:
createJwsSignature in interface JwsSignatureProvider

doCreateJwsSignature

protected abstract JwsSignature doCreateJwsSignature(JoseHeaders headers)

checkAlgorithm

protected void checkAlgorithm(String algo)


Apache CXF