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:
KeyEncryptionAlgorithm

public class AesGcmWrapKeyEncryptionAlgorithm
extends AbstractWrapKeyEncryptionAlgorithm


Constructor Summary
AesGcmWrapKeyEncryptionAlgorithm(byte[] keyBytes, String keyAlgoJwt)
           
AesGcmWrapKeyEncryptionAlgorithm(SecretKey key, String keyAlgoJwt)
           
AesGcmWrapKeyEncryptionAlgorithm(String encodedKey, String 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,
                                        String keyAlgoJwt)

AesGcmWrapKeyEncryptionAlgorithm

public AesGcmWrapKeyEncryptionAlgorithm(byte[] keyBytes,
                                        String keyAlgoJwt)

AesGcmWrapKeyEncryptionAlgorithm

public AesGcmWrapKeyEncryptionAlgorithm(SecretKey key,
                                        String keyAlgoJwt)
Method Detail

getEncryptedContentEncryptionKey

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

getAlgorithmParameterSpec

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


Apache CXF