org.apache.xml.security.algorithms.encryption.implementations.BC
Class KeyTransportImpl

java.lang.Object
  |
  +--org.apache.xml.security.algorithms.encryption.EncryptionMethodSpi
        |
        +--org.apache.xml.security.algorithms.encryption.implementations.BC.KeyTransportImpl
Direct Known Subclasses:
KeyTransportImpl_RSAOAEP_BC, KeyTransportImpl_RSAPKCS15_BC

public abstract class KeyTransportImpl
extends EncryptionMethodSpi

Author:
$Author: geuerp $

Field Summary
 
Fields inherited from class org.apache.xml.security.algorithms.encryption.EncryptionMethodSpi
ALGOTYPE_BLOCK_ENCRYPTION, ALGOTYPE_KEY_AGREEMENT, ALGOTYPE_KEY_TRANSPORT, ALGOTYPE_STREAM_ENCRYPTION, ALGOTYPE_SYMMETRIC_KEY_WRAP
 
Constructor Summary
KeyTransportImpl()
           
 
Method Summary
 byte[] engineDecrypt(byte[] ciphertextBytes, java.security.Key contentKey)
          Method engineDecrypt
 byte[] engineEncrypt(byte[] plaintextBytes, java.security.Key contentKey)
          Method engineEncrypt
 byte[] engineEncrypt(byte[] plaintextBytes, java.security.Key contentKey, byte[] IV)
          Method engineEncrypt
 byte[] engineWrap(java.security.Key contentKey, java.security.Key wrapKey, byte[] IV)
          Method engineWrap
 int getImplementedAlgorithmType()
          Method getImplementedAlgorithmType
 java.lang.String getRequiredProviderName()
          Method getRequiredProviderName
 
Methods inherited from class org.apache.xml.security.algorithms.encryption.EncryptionMethodSpi
engineGetBlockSize, engineGetIvLength, engineInit, engineInit, engineUnwrap, engineWrap, getImplementedAlgorithmJCE, getImplementedAlgorithmURI, getRequiredProviderAvailable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KeyTransportImpl

public KeyTransportImpl()
Method Detail

getRequiredProviderName

public java.lang.String getRequiredProviderName()
Method getRequiredProviderName

Specified by:
getRequiredProviderName in class EncryptionMethodSpi
Returns:

getImplementedAlgorithmType

public int getImplementedAlgorithmType()
Method getImplementedAlgorithmType

Specified by:
getImplementedAlgorithmType in class EncryptionMethodSpi
Returns:

engineWrap

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

Specified by:
engineWrap in class EncryptionMethodSpi
Parameters:
contentKey -
wrapKey -
IV -
Returns:
Throws:
XMLSecurityException

engineEncrypt

public byte[] engineEncrypt(byte[] plaintextBytes,
                            java.security.Key contentKey)
                     throws XMLSecurityException
Method engineEncrypt

Specified by:
engineEncrypt in class EncryptionMethodSpi
Parameters:
plaintextBytes -
contentKey -
Returns:
Throws:
XMLSecurityException

engineEncrypt

public byte[] engineEncrypt(byte[] plaintextBytes,
                            java.security.Key contentKey,
                            byte[] IV)
                     throws XMLSecurityException
Method engineEncrypt

Specified by:
engineEncrypt in class EncryptionMethodSpi
Parameters:
plaintextBytes -
contentKey -
IV -
Returns:
Throws:
XMLSecurityException

engineDecrypt

public byte[] engineDecrypt(byte[] ciphertextBytes,
                            java.security.Key contentKey)
                     throws XMLSecurityException
Method engineDecrypt

Specified by:
engineDecrypt in class EncryptionMethodSpi
Parameters:
ciphertextBytes -
contentKey -
Returns:
Throws:
XMLSecurityException