org.apache.xml.security.algorithms.encryption.helper
Class AESWrapper

java.lang.Object
  |
  +--org.apache.xml.security.algorithms.encryption.helper.AESWrapper

public class AESWrapper
extends java.lang.Object

Author:
$Author: geuerp $

Constructor Summary
AESWrapper(javax.crypto.Cipher aesCipher)
          Constructor AESWrapper
 
Method Summary
 byte[] unwrap(byte[] wrappedKey, java.security.Key wrapKey)
          Method unwrap
 byte[] wrap(java.security.Key keyToBeWrappedK, java.security.Key wrapKey, byte[] IV)
          Method wrap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AESWrapper

public AESWrapper(javax.crypto.Cipher aesCipher)
Constructor AESWrapper

Parameters:
aesCipher -
Method Detail

wrap

public byte[] wrap(java.security.Key keyToBeWrappedK,
                   java.security.Key wrapKey,
                   byte[] IV)
            throws XMLSecurityException
Method wrap

Parameters:
keyToBeWrappedK -
wrapKey -
IV -
Returns:
Throws:
XMLSecurityException

unwrap

public byte[] unwrap(byte[] wrappedKey,
                     java.security.Key wrapKey)
              throws InvalidCipherTextException,
                     XMLSecurityException
Method unwrap

Parameters:
wrappedKey -
wrapKey -
Returns:
Throws:
InvalidCipherTextException
XMLSecurityException