org.apache.cxf.rs.security.oauth2.jwe
Class WrappedKeyJweEncryption

java.lang.Object
  extended by org.apache.cxf.rs.security.oauth2.jwe.AbstractJweEncryption
      extended by org.apache.cxf.rs.security.oauth2.jwe.WrappedKeyJweEncryption
All Implemented Interfaces:
JweEncryptionProvider
Direct Known Subclasses:
RSAJweEncryption

public class WrappedKeyJweEncryption
extends AbstractJweEncryption


Field Summary
 
Fields inherited from class org.apache.cxf.rs.security.oauth2.jwe.AbstractJweEncryption
DEFAULT_AUTH_TAG_LENGTH, DEFAULT_IV_SIZE
 
Constructor Summary
WrappedKeyJweEncryption(JweHeaders headers, Key cekEncryptionKey)
           
WrappedKeyJweEncryption(JweHeaders headers, Key cekEncryptionKey, byte[] cek, byte[] iv)
           
WrappedKeyJweEncryption(JweHeaders headers, Key cekEncryptionKey, byte[] cek, byte[] iv, int authTagLen, boolean wrap)
           
WrappedKeyJweEncryption(JweHeaders headers, Key cekEncryptionKey, byte[] cek, byte[] iv, int authTagLen, boolean wrap, JwtHeadersWriter writer)
           
 
Method Summary
protected  byte[] getContentEncryptionKey()
           
protected  String getContentEncryptionKeyEncryptionAlgo()
           
protected  byte[] getEncryptedContentEncryptionKey(byte[] theCek)
           
 
Methods inherited from class org.apache.cxf.rs.security.oauth2.jwe.AbstractJweEncryption
createJweEncryption, encrypt, getAuthTagLen, getContentEncryptionAlgoJava, getContentEncryptionAlgoJwt, getContentEncryptionCipherInitVector, getContentEncryptionCipherSpec, getJweHeaders
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WrappedKeyJweEncryption

public WrappedKeyJweEncryption(JweHeaders headers,
                               Key cekEncryptionKey)

WrappedKeyJweEncryption

public WrappedKeyJweEncryption(JweHeaders headers,
                               Key cekEncryptionKey,
                               byte[] cek,
                               byte[] iv)

WrappedKeyJweEncryption

public WrappedKeyJweEncryption(JweHeaders headers,
                               Key cekEncryptionKey,
                               byte[] cek,
                               byte[] iv,
                               int authTagLen,
                               boolean wrap)

WrappedKeyJweEncryption

public WrappedKeyJweEncryption(JweHeaders headers,
                               Key cekEncryptionKey,
                               byte[] cek,
                               byte[] iv,
                               int authTagLen,
                               boolean wrap,
                               JwtHeadersWriter writer)
Method Detail

getContentEncryptionKey

protected byte[] getContentEncryptionKey()
Overrides:
getContentEncryptionKey in class AbstractJweEncryption

getEncryptedContentEncryptionKey

protected byte[] getEncryptedContentEncryptionKey(byte[] theCek)
Specified by:
getEncryptedContentEncryptionKey in class AbstractJweEncryption

getContentEncryptionKeyEncryptionAlgo

protected String getContentEncryptionKeyEncryptionAlgo()


Apache CXF