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

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

public class EcdhAesWrapKeyEncryptionAlgorithm
extends Object
implements KeyEncryptionProvider


Constructor Summary
EcdhAesWrapKeyEncryptionAlgorithm(ECPublicKey peerPublicKey, String curve, KeyAlgorithm keyAlgo)
           
EcdhAesWrapKeyEncryptionAlgorithm(ECPublicKey peerPublicKey, String curve, String apuString, String apvString, KeyAlgorithm keyAlgo)
           
 
Method Summary
 KeyAlgorithm getAlgorithm()
           
 byte[] getEncryptedContentEncryptionKey(JweHeaders headers, byte[] cek)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EcdhAesWrapKeyEncryptionAlgorithm

public EcdhAesWrapKeyEncryptionAlgorithm(ECPublicKey peerPublicKey,
                                         String curve,
                                         KeyAlgorithm keyAlgo)

EcdhAesWrapKeyEncryptionAlgorithm

public EcdhAesWrapKeyEncryptionAlgorithm(ECPublicKey peerPublicKey,
                                         String curve,
                                         String apuString,
                                         String apvString,
                                         KeyAlgorithm keyAlgo)
Method Detail

getEncryptedContentEncryptionKey

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

getAlgorithm

public KeyAlgorithm getAlgorithm()
Specified by:
getAlgorithm in interface KeyEncryptionProvider


Apache CXF