org.apache.cxf.rs.security.jose.jwe
Class WrappedKeyDecryptionAlgorithm

java.lang.Object
  extended by org.apache.cxf.rs.security.jose.jwe.WrappedKeyDecryptionAlgorithm
All Implemented Interfaces:
KeyDecryptionAlgorithm
Direct Known Subclasses:
AesGcmWrapKeyDecryptionAlgorithm, AesWrapKeyDecryptionAlgorithm, RSAOaepKeyDecryptionAlgorithm

public class WrappedKeyDecryptionAlgorithm
extends Object
implements KeyDecryptionAlgorithm


Constructor Summary
WrappedKeyDecryptionAlgorithm(Key cekDecryptionKey)
           
WrappedKeyDecryptionAlgorithm(Key cekDecryptionKey, String supportedAlgo)
           
WrappedKeyDecryptionAlgorithm(Key cekDecryptionKey, String supportedAlgo, boolean unwrap)
           
 
Method Summary
protected  AlgorithmParameterSpec getAlgorithmParameterSpec(JweCompactConsumer consumer)
           
protected  Key getCekDecryptionKey()
           
protected  String getContentEncryptionAlgorithm(JweCompactConsumer consumer)
           
 byte[] getDecryptedContentEncryptionKey(JweCompactConsumer consumer)
           
protected  byte[] getEncryptedContentEncryptionKey(JweCompactConsumer consumer)
           
protected  int getKeyCipherBlockSize()
           
protected  String getKeyEncryptionAlgorithm(JweCompactConsumer consumer)
           
protected  void validateKeyEncryptionAlgorithm(String keyAlgo)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WrappedKeyDecryptionAlgorithm

public WrappedKeyDecryptionAlgorithm(Key cekDecryptionKey)

WrappedKeyDecryptionAlgorithm

public WrappedKeyDecryptionAlgorithm(Key cekDecryptionKey,
                                     String supportedAlgo)

WrappedKeyDecryptionAlgorithm

public WrappedKeyDecryptionAlgorithm(Key cekDecryptionKey,
                                     String supportedAlgo,
                                     boolean unwrap)
Method Detail

getDecryptedContentEncryptionKey

public byte[] getDecryptedContentEncryptionKey(JweCompactConsumer consumer)
Specified by:
getDecryptedContentEncryptionKey in interface KeyDecryptionAlgorithm

getCekDecryptionKey

protected Key getCekDecryptionKey()

getKeyCipherBlockSize

protected int getKeyCipherBlockSize()

getKeyEncryptionAlgorithm

protected String getKeyEncryptionAlgorithm(JweCompactConsumer consumer)

validateKeyEncryptionAlgorithm

protected void validateKeyEncryptionAlgorithm(String keyAlgo)

getContentEncryptionAlgorithm

protected String getContentEncryptionAlgorithm(JweCompactConsumer consumer)

getAlgorithmParameterSpec

protected AlgorithmParameterSpec getAlgorithmParameterSpec(JweCompactConsumer consumer)

getEncryptedContentEncryptionKey

protected byte[] getEncryptedContentEncryptionKey(JweCompactConsumer consumer)


Apache CXF