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


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

Field Detail

LOG

protected static final Logger LOG
Constructor Detail

AbstractJwsSignatureProvider

protected AbstractJwsSignatureProvider(SignatureAlgorithm algo)
Method Detail

prepareHeaders

protected JwsHeaders prepareHeaders(JwsHeaders headers)

getAlgorithm

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

sign

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

createJwsSignature

public JwsSignature createJwsSignature(JwsHeaders 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)

isValidAlgorithmFamily

protected abstract boolean isValidAlgorithmFamily(String algo)


Apache CXF