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

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

public abstract class AbstractJwsSignatureProvider
extends Object
implements JwsSignatureProvider


Constructor Summary
protected AbstractJwsSignatureProvider(Set<String> supportedAlgorithms)
           
 
Method Summary
protected  void checkAlgorithm(String algo)
           
 JwsSignature createJwsSignature(JwtHeaders headers)
           
protected abstract  JwsSignature doCreateJwsSignature(JwtHeaders headers)
           
protected  JwtHeaders prepareHeaders(JwtHeaders headers)
           
 void setDefaultJwtAlgorithm(String algo)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractJwsSignatureProvider

protected AbstractJwsSignatureProvider(Set<String> supportedAlgorithms)
Method Detail

prepareHeaders

protected JwtHeaders prepareHeaders(JwtHeaders headers)

createJwsSignature

public JwsSignature createJwsSignature(JwtHeaders headers)
Specified by:
createJwsSignature in interface JwsSignatureProvider

doCreateJwsSignature

protected abstract JwsSignature doCreateJwsSignature(JwtHeaders headers)

setDefaultJwtAlgorithm

public void setDefaultJwtAlgorithm(String algo)

checkAlgorithm

protected void checkAlgorithm(String algo)


Apache CXF