org.apache.xml.security.algorithms.encryption.helper
Class TripleDESWrapper
java.lang.Object
|
+--org.apache.xml.security.algorithms.encryption.helper.TripleDESWrapper
- public class TripleDESWrapper
- extends java.lang.Object
- Author:
- $Author: geuerp $
Constructor Summary |
TripleDESWrapper(javax.crypto.Cipher tripleDesECBCipher,
java.security.MessageDigest sha1)
Constructor TripleDESWrapper |
Method Summary |
byte[] |
unwrap(byte[] wrappedKey,
java.security.Key wrapKey)
Method unwrap |
byte[] |
wrap(byte[] keyToBeWrapped,
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 |
TripleDESWrapper
public TripleDESWrapper(javax.crypto.Cipher tripleDesECBCipher,
java.security.MessageDigest sha1)
- Constructor TripleDESWrapper
- Parameters:
tripleDesECBCipher
- sha1
-
wrap
public byte[] wrap(byte[] keyToBeWrapped,
java.security.Key wrapKey,
byte[] IV)
throws java.security.InvalidKeyException,
java.security.InvalidAlgorithmParameterException,
javax.crypto.IllegalBlockSizeException,
XMLSecurityException
- Method wrap
- Parameters:
keyToBeWrapped
- wrapKey
- IV
-
- Returns:
-
- Throws:
javax.crypto.IllegalBlockSizeException
java.security.InvalidAlgorithmParameterException
java.security.InvalidKeyException
XMLSecurityException
unwrap
public byte[] unwrap(byte[] wrappedKey,
java.security.Key wrapKey)
throws InvalidCipherTextException,
XMLSecurityException
- Method unwrap
- Parameters:
wrappedKey
- wrapKey
-
- Returns:
-
- Throws:
InvalidCipherTextException
XMLSecurityException