org.apache.xml.security.algorithms.encryption
Class EncryptionMethodSpi
java.lang.Object
|
+--org.apache.xml.security.algorithms.encryption.EncryptionMethodSpi
- public abstract class EncryptionMethodSpi
- extends java.lang.Object
- Author:
- $Author: vdkoogh $
Method Summary |
abstract byte[] |
engineDecrypt(byte[] ciphertextBytes,
java.security.Key contentKey)
|
abstract byte[] |
engineEncrypt(byte[] plaintextBytes,
java.security.Key contentKey)
|
abstract byte[] |
engineEncrypt(byte[] plaintextBytes,
java.security.Key contentKey,
byte[] IV)
|
abstract int |
engineGetBlockSize()
|
abstract int |
engineGetIvLength()
|
abstract EncryptionMethodParams |
engineInit(org.w3c.dom.Document doc,
EncryptionMethodParams params)
|
abstract EncryptionMethodParams |
engineInit(org.w3c.dom.Element encryptionMethodElem)
|
abstract java.security.Key |
engineUnwrap(byte[] wrappedKey,
java.security.Key wrapKey,
java.lang.String wrappedKeyAlgoURI)
|
abstract byte[] |
engineWrap(java.security.Key contentKey,
java.security.Key wrapKey)
|
abstract byte[] |
engineWrap(java.security.Key contentKey,
java.security.Key wrapKey,
byte[] IV)
|
protected java.lang.String |
getImplementedAlgorithmJCE()
Method getImplementedAlgorithmJCE |
abstract int |
getImplementedAlgorithmType()
|
abstract java.lang.String |
getImplementedAlgorithmURI()
|
boolean |
getRequiredProviderAvailable()
Return true if this Provider which is required by this
class is available, otherwise false . |
abstract java.lang.String |
getRequiredProviderName()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ALGOTYPE_BLOCK_ENCRYPTION
public static final int ALGOTYPE_BLOCK_ENCRYPTION
- See Also:
- Constant Field Values
ALGOTYPE_STREAM_ENCRYPTION
public static final int ALGOTYPE_STREAM_ENCRYPTION
- See Also:
- Constant Field Values
ALGOTYPE_KEY_TRANSPORT
public static final int ALGOTYPE_KEY_TRANSPORT
- See Also:
- Constant Field Values
ALGOTYPE_SYMMETRIC_KEY_WRAP
public static final int ALGOTYPE_SYMMETRIC_KEY_WRAP
- See Also:
- Constant Field Values
ALGOTYPE_KEY_AGREEMENT
public static final int ALGOTYPE_KEY_AGREEMENT
- See Also:
- Constant Field Values
EncryptionMethodSpi
public EncryptionMethodSpi()
getRequiredProviderAvailable
public boolean getRequiredProviderAvailable()
- Return
true
if this Provider which is required by this
class is available, otherwise false
.
- Returns:
true
if this Provider which is required by this class is available, otherwise false
.
getImplementedAlgorithmJCE
protected java.lang.String getImplementedAlgorithmJCE()
- Method getImplementedAlgorithmJCE
getImplementedAlgorithmType
public abstract int getImplementedAlgorithmType()
getImplementedAlgorithmURI
public abstract java.lang.String getImplementedAlgorithmURI()
getRequiredProviderName
public abstract java.lang.String getRequiredProviderName()
engineGetBlockSize
public abstract int engineGetBlockSize()
engineGetIvLength
public abstract int engineGetIvLength()
engineEncrypt
public abstract byte[] engineEncrypt(byte[] plaintextBytes,
java.security.Key contentKey)
throws XMLSecurityException
XMLSecurityException
engineEncrypt
public abstract byte[] engineEncrypt(byte[] plaintextBytes,
java.security.Key contentKey,
byte[] IV)
throws XMLSecurityException
XMLSecurityException
engineDecrypt
public abstract byte[] engineDecrypt(byte[] ciphertextBytes,
java.security.Key contentKey)
throws XMLSecurityException
XMLSecurityException
engineWrap
public abstract byte[] engineWrap(java.security.Key contentKey,
java.security.Key wrapKey)
throws XMLSecurityException
XMLSecurityException
engineWrap
public abstract byte[] engineWrap(java.security.Key contentKey,
java.security.Key wrapKey,
byte[] IV)
throws XMLSecurityException
XMLSecurityException
engineUnwrap
public abstract java.security.Key engineUnwrap(byte[] wrappedKey,
java.security.Key wrapKey,
java.lang.String wrappedKeyAlgoURI)
throws XMLSecurityException
XMLSecurityException
engineInit
public abstract EncryptionMethodParams engineInit(org.w3c.dom.Document doc,
EncryptionMethodParams params)
throws XMLSecurityException
XMLSecurityException
engineInit
public abstract EncryptionMethodParams engineInit(org.w3c.dom.Element encryptionMethodElem)
throws XMLSecurityException
XMLSecurityException