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


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()
           
 JoseHeaders 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(RSAPublicKey key, String algo)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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 JoseHeaders 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(RSAPublicKey key,
                                   String algo)

verifySignatureWith

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

validateCriticalHeaders

public boolean validateCriticalHeaders()

getReader

protected JoseHeadersReaderWriter getReader()


Apache CXF