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

java.lang.Object
  extended by org.apache.cxf.rs.security.oauth2.jwe.AbstractJweEncryption
      extended by org.apache.cxf.rs.security.oauth2.jwe.DirectKeyJweEncryption
All Implemented Interfaces:
JweEncryptionProvider

public class DirectKeyJweEncryption
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
DirectKeyJweEncryption(JweHeaders headers, byte[] cek, byte[] iv)
           
DirectKeyJweEncryption(JweHeaders headers, byte[] cek, byte[] iv, int authTagLen)
           
DirectKeyJweEncryption(SecretKey cek, byte[] iv)
           
 
Method Summary
protected  byte[] getEncryptedContentEncryptionKey(byte[] theCek)
           
 
Methods inherited from class org.apache.cxf.rs.security.oauth2.jwe.AbstractJweEncryption
createJweEncryption, encrypt, getAuthTagLen, getContentEncryptionAlgoJava, getContentEncryptionAlgoJwt, getContentEncryptionCipherInitVector, getContentEncryptionCipherSpec, getContentEncryptionKey, getJweHeaders
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DirectKeyJweEncryption

public DirectKeyJweEncryption(SecretKey cek,
                              byte[] iv)

DirectKeyJweEncryption

public DirectKeyJweEncryption(JweHeaders headers,
                              byte[] cek,
                              byte[] iv)

DirectKeyJweEncryption

public DirectKeyJweEncryption(JweHeaders headers,
                              byte[] cek,
                              byte[] iv,
                              int authTagLen)
Method Detail

getEncryptedContentEncryptionKey

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


Apache CXF