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

java.lang.Object
  |
  +--org.apache.xml.security.algorithms.encryption.EncryptionMethodSpi
        |
        +--org.apache.xml.security.algorithms.encryption.implementations.BC.KeyWrapImpl_AES_BC
Direct Known Subclasses:
KeyWrapImpl_AES128_BC, KeyWrapImpl_AES192_BC, KeyWrapImpl_AES256_BC

public abstract class KeyWrapImpl_AES_BC
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
KeyWrapImpl_AES_BC()
           
 
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)
           
 java.security.Key engineUnwrap(byte[] wrappedKey, java.security.Key wrapKey, java.lang.String wrappedKeyURI)
          Method engineUnwrap
 byte[] engineWrap(java.security.Key contentKey, java.security.Key wrapKey)
          Method engineWrap
 byte[] engineWrap(java.security.Key contentKey, java.security.Key wrapKey, byte[] IV)
          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
 

Constructor Detail

KeyWrapImpl_AES_BC

public KeyWrapImpl_AES_BC()
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
Specified by:
engineInit in class EncryptionMethodSpi
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 contentKey,
                         java.security.Key wrapKey,
                         byte[] IV)
                  throws XMLSecurityException
Method engineWrap

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

engineUnwrap

public java.security.Key engineUnwrap(byte[] wrappedKey,
                                      java.security.Key wrapKey,
                                      java.lang.String wrappedKeyURI)
                               throws XMLSecurityException
Method engineUnwrap

Specified by:
engineUnwrap in class EncryptionMethodSpi
Parameters:
wrappedKey -
wrapKey -
wrappedKeyURI -
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