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

java.lang.Object
  |
  +--org.apache.xml.security.algorithms.encryption.EncryptionMethodSpi
        |
        +--org.apache.xml.security.algorithms.encryption.implementations.BC.BlockEncryptionImpl
Direct Known Subclasses:
BlockEncryptionImpl_AES128_BC, BlockEncryptionImpl_AES192_BC, BlockEncryptionImpl_AES256_BC, BlockEncryptionImpl_TRIPLEDES_BC

public abstract class BlockEncryptionImpl
extends EncryptionMethodSpi

Author:
$Author: geuerp $

Field Summary
static boolean ENCRYPT_IV_IN_ECB
          Field ENCRYPT_IV_IN_ECB
 
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
BlockEncryptionImpl()
           
 
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
 int engineGetBlockSize()
          Method engineGetBlockSize
abstract  int engineGetIvLength()
          Method engineGetIvLength
 EncryptionMethodParams engineInit(org.w3c.dom.Document doc, EncryptionMethodParams params)
          Method engineInit
 EncryptionMethodParams engineInit(org.w3c.dom.Element encryptionMethodElem)
          Method engineInit
 java.security.Key engineUnwrap(byte[] parm1, java.security.Key parm2, java.lang.String parm3)
          Method engineUnwrap
 byte[] engineWrap(java.security.Key contentKey, java.security.Key wrapKey)
          Method engineWrap
 byte[] engineWrap(java.security.Key parm1, java.security.Key parm2, byte[] parm3)
          Method engineWrap
 int getImplementedAlgorithmType()
          Method getImplementedAlgorithmType
abstract  java.lang.String getImplementedAlgorithmURI()
          Method getImplementedAlgorithmURI
abstract  java.lang.String getRequiredProviderName()
          Method getRequiredProviderName
 
Methods inherited from class org.apache.xml.security.algorithms.encryption.EncryptionMethodSpi
getImplementedAlgorithmJCE, getRequiredProviderAvailable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ENCRYPT_IV_IN_ECB

public static final boolean ENCRYPT_IV_IN_ECB
Field ENCRYPT_IV_IN_ECB

See Also:
Constant Field Values
Constructor Detail

BlockEncryptionImpl

public BlockEncryptionImpl()
Method Detail

getRequiredProviderName

public abstract java.lang.String getRequiredProviderName()
Method getRequiredProviderName

Specified by:
getRequiredProviderName in class EncryptionMethodSpi
Returns:

getImplementedAlgorithmURI

public abstract java.lang.String getImplementedAlgorithmURI()
Method getImplementedAlgorithmURI

Specified by:
getImplementedAlgorithmURI in class EncryptionMethodSpi
Returns:

getImplementedAlgorithmType

public int getImplementedAlgorithmType()
Method getImplementedAlgorithmType

Specified by:
getImplementedAlgorithmType in class EncryptionMethodSpi
Returns:

engineGetBlockSize

public int engineGetBlockSize()
Method engineGetBlockSize

Specified by:
engineGetBlockSize in class EncryptionMethodSpi
Returns:

engineGetIvLength

public abstract int engineGetIvLength()
Method engineGetIvLength

Specified by:
engineGetIvLength in class EncryptionMethodSpi
Returns:

engineInit

public EncryptionMethodParams engineInit(org.w3c.dom.Document doc,
                                         EncryptionMethodParams params)
                                  throws XMLSecurityException
Method engineInit

Specified by:
engineInit in class EncryptionMethodSpi
Parameters:
doc -
params -
Returns:
Throws:
XMLSecurityException

engineInit

public EncryptionMethodParams engineInit(org.w3c.dom.Element encryptionMethodElem)
                                  throws XMLSecurityException
Method engineInit

Specified by:
engineInit in class EncryptionMethodSpi
Parameters:
encryptionMethodElem -
Returns:
Throws:
XMLSecurityException

engineWrap

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

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

engineWrap

public byte[] engineWrap(java.security.Key parm1,
                         java.security.Key parm2,
                         byte[] parm3)
                  throws XMLSecurityException
Method engineWrap

Specified by:
engineWrap in class EncryptionMethodSpi
Parameters:
parm1 -
parm2 -
parm3 -
Returns:
Throws:
XMLSecurityException

engineUnwrap

public java.security.Key engineUnwrap(byte[] parm1,
                                      java.security.Key parm2,
                                      java.lang.String parm3)
                               throws XMLSecurityException
Method engineUnwrap

Specified by:
engineUnwrap in class EncryptionMethodSpi
Parameters:
parm1 -
parm2 -
parm3 -
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