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

java.lang.Object
  extended by org.apache.cxf.rs.security.jose.jwe.AbstractWrapKeyEncryptionAlgorithm
      extended by org.apache.cxf.rs.security.jose.jwe.AesGcmWrapKeyEncryptionAlgorithm
All Implemented Interfaces:
KeyEncryptionProvider

public class AesGcmWrapKeyEncryptionAlgorithm
extends AbstractWrapKeyEncryptionAlgorithm


Field Summary
 
Fields inherited from class org.apache.cxf.rs.security.jose.jwe.AbstractWrapKeyEncryptionAlgorithm
LOG
 
Constructor Summary
AesGcmWrapKeyEncryptionAlgorithm(byte[] keyBytes, KeyAlgorithm keyAlgoJwt)
           
AesGcmWrapKeyEncryptionAlgorithm(SecretKey key, KeyAlgorithm keyAlgoJwt)
           
AesGcmWrapKeyEncryptionAlgorithm(String encodedKey, KeyAlgorithm keyAlgoJwt)
           
 
Method Summary
protected  AlgorithmParameterSpec getAlgorithmParameterSpec(JweHeaders headers)
           
 byte[] getEncryptedContentEncryptionKey(JweHeaders headers, byte[] cek)
           
 
Methods inherited from class org.apache.cxf.rs.security.jose.jwe.AbstractWrapKeyEncryptionAlgorithm
checkAlgorithm, checkAlgorithms, getAlgorithm, getContentEncryptionAlgoJava, getKeyEncryptionAlgoJava
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AesGcmWrapKeyEncryptionAlgorithm

public AesGcmWrapKeyEncryptionAlgorithm(String encodedKey,
                                        KeyAlgorithm keyAlgoJwt)

AesGcmWrapKeyEncryptionAlgorithm

public AesGcmWrapKeyEncryptionAlgorithm(byte[] keyBytes,
                                        KeyAlgorithm keyAlgoJwt)

AesGcmWrapKeyEncryptionAlgorithm

public AesGcmWrapKeyEncryptionAlgorithm(SecretKey key,
                                        KeyAlgorithm keyAlgoJwt)
Method Detail

getEncryptedContentEncryptionKey

public byte[] getEncryptedContentEncryptionKey(JweHeaders headers,
                                               byte[] cek)
Specified by:
getEncryptedContentEncryptionKey in interface KeyEncryptionProvider
Overrides:
getEncryptedContentEncryptionKey in class AbstractWrapKeyEncryptionAlgorithm

getAlgorithmParameterSpec

protected AlgorithmParameterSpec getAlgorithmParameterSpec(JweHeaders headers)
Overrides:
getAlgorithmParameterSpec in class AbstractWrapKeyEncryptionAlgorithm


Apache CXF