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

java.lang.Object
  extended by org.apache.cxf.rs.security.jose.jws.JwsCompactConsumer
Direct Known Subclasses:
JwsJwtCompactConsumer

public class JwsCompactConsumer
extends Object


Field Summary
protected static Logger LOG
           
 
Constructor Summary
  JwsCompactConsumer(String encodedJws)
           
  JwsCompactConsumer(String encodedJws, String encodedDetachedPayload)
           
protected JwsCompactConsumer(String encodedJws, String encodedDetachedPayload, JoseHeadersReaderWriter r)
           
 
Method Summary
 String getDecodedJsonHeaders()
           
 String getDecodedJwsPayload()
           
 byte[] getDecodedJwsPayloadBytes()
           
 byte[] getDecodedSignature()
           
 String getEncodedSignature()
           
 JwsHeaders getJoseHeaders()
           
protected  JoseHeadersReaderWriter getReader()
           
 String getUnsignedEncodedSequence()
           
 boolean validateCriticalHeaders()
           
 boolean verifySignatureWith(byte[] key, String algo)
           
 boolean verifySignatureWith(JsonWebKey key)
           
 boolean verifySignatureWith(JsonWebKey key, String algo)
           
 boolean verifySignatureWith(JwsSignatureVerifier validator)
           
 boolean verifySignatureWith(PublicKey key, String algo)
           
 boolean verifySignatureWith(X509Certificate cert, String algo)
           
 
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

JwsCompactConsumer

public JwsCompactConsumer(String encodedJws)

JwsCompactConsumer

public JwsCompactConsumer(String encodedJws,
                          String encodedDetachedPayload)

JwsCompactConsumer

protected JwsCompactConsumer(String encodedJws,
                             String encodedDetachedPayload,
                             JoseHeadersReaderWriter r)
Method Detail

getUnsignedEncodedSequence

public String getUnsignedEncodedSequence()

getEncodedSignature

public String getEncodedSignature()

getDecodedJsonHeaders

public String getDecodedJsonHeaders()

getDecodedJwsPayload

public String getDecodedJwsPayload()

getDecodedJwsPayloadBytes

public byte[] getDecodedJwsPayloadBytes()

getDecodedSignature

public byte[] getDecodedSignature()

getJoseHeaders

public JwsHeaders getJoseHeaders()

verifySignatureWith

public boolean verifySignatureWith(JwsSignatureVerifier validator)

verifySignatureWith

public boolean verifySignatureWith(JsonWebKey key)

verifySignatureWith

public boolean verifySignatureWith(JsonWebKey key,
                                   String algo)

verifySignatureWith

public boolean verifySignatureWith(X509Certificate cert,
                                   String algo)

verifySignatureWith

public boolean verifySignatureWith(PublicKey key,
                                   String algo)

verifySignatureWith

public boolean verifySignatureWith(byte[] key,
                                   String algo)

validateCriticalHeaders

public boolean validateCriticalHeaders()

getReader

protected JoseHeadersReaderWriter getReader()


Apache CXF