|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.xml.security.utils.ElementProxy | +--org.apache.xml.security.algorithms.Algorithm | +--org.apache.xml.security.algorithms.encryption.EncryptionMethod
This is the representation of an xenc:EncryptionMethod
element. It's additionally the factory for encryption/wrap/transport
algorithms.
Field Summary |
Fields inherited from class org.apache.xml.security.utils.ElementProxy |
_baseURI, _constructionElement, _doc, _state, MODE_CREATE, MODE_DECRYPT, MODE_ENCRYPT, MODE_PROCESS, MODE_SIGN, MODE_UNKNOWN, MODE_VERIFY |
Constructor Summary | |
EncryptionMethod(org.w3c.dom.Document doc,
java.lang.String algorithmURI)
Constructor EncryptionMethod |
|
EncryptionMethod(org.w3c.dom.Document doc,
java.lang.String algorithmURI,
EncryptionMethodParams params)
Constructor EncryptionMethod |
|
EncryptionMethod(org.w3c.dom.Element element,
java.lang.String BaseURI)
Constructor EncryptionMethod |
Method Summary | |
java.security.Key |
createSecretKeyFromBytes(byte[] encodedKey)
Method createSecretKeyFromBytes |
byte[] |
decrypt(byte[] ciphertextBytes,
java.security.Key contentKey)
Method decrypt |
byte[] |
decryptB64(java.lang.String ciphertext,
java.security.Key contentKey)
|
byte[] |
encrypt(byte[] plaintextBytes,
java.security.Key contentKey)
Method encrypt |
byte[] |
encrypt(byte[] plaintextBytes,
java.security.Key contentKey,
byte[] IV)
Method encrypt |
java.lang.String |
encryptB64(byte[] plaintextBytes,
java.security.Key contentKey)
|
java.lang.String |
encryptB64(byte[] plaintextBytes,
java.security.Key contentKey,
byte[] IV)
|
java.lang.String |
getBaseLocalName()
Method getBaseLocalName |
java.lang.String |
getBaseNamespace()
Method getBaseNamespace |
int |
getBlockSize()
Method getBlockSize |
int |
getIvLength()
Method getIvLength |
EncryptionMethodParams |
getParams()
Method getParams |
boolean |
getUsableInEncryptedData()
Method getUsableInEncryptedData |
boolean |
getUsableInEncryptedKey()
Method getUsableInEncryptedKey |
static void |
providerInit()
Method providerInit |
static boolean |
register(java.lang.String algorithmURI,
java.lang.String implementingClass)
Method register |
java.security.Key |
unwrap(byte[] wrappedKey,
java.security.Key wrapKey,
java.lang.String wrappedKeyAlgoURI)
Method unwrap |
java.security.Key |
unwrapB64(java.lang.String wrappedKey,
java.security.Key wrapKey,
java.lang.String wrappedKeyAlgoURI)
|
byte[] |
wrap(java.security.Key contentKey,
java.security.Key wrapKey)
Method wrap |
byte[] |
wrap(java.security.Key contentKey,
java.security.Key wrapKey,
byte[] IV)
Method wrap |
java.lang.String |
wrapB64(java.security.Key contentKey,
java.security.Key wrapKey)
|
java.lang.String |
wrapB64(java.security.Key contentKey,
java.security.Key wrapKey,
byte[] IV)
|
Methods inherited from class org.apache.xml.security.algorithms.Algorithm |
getAlgorithmURI, setAlgorithmURI |
Methods inherited from class org.apache.xml.security.utils.ElementProxy |
addBase64Element, addBase64Text, addBigIntegerElement, addText, addTextElement, createElementForFamily, getBaseURI, getBigIntegerFromChildElement, getBytesFromChildElement, getBytesFromTextChild, getChildElementLocalName, getDefaultPrefix, getDocument, getElement, getElementPlusReturns, getTextFromChildElement, getTextFromTextChild, guaranteeThatElementInCorrectSpace, length, setDefaultPrefix, setElement, setXPathNamespaceContext |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public EncryptionMethod(org.w3c.dom.Document doc, java.lang.String algorithmURI) throws XMLSecurityException
doc
- algorithmURI
-
XMLSecurityException
public EncryptionMethod(org.w3c.dom.Document doc, java.lang.String algorithmURI, EncryptionMethodParams params) throws XMLSecurityException
doc
- algorithmURI
- params
-
XMLSecurityException
public EncryptionMethod(org.w3c.dom.Element element, java.lang.String BaseURI) throws XMLSecurityException
element
- BaseURI
-
XMLSecurityException
Method Detail |
public java.lang.String getBaseNamespace()
getBaseNamespace
in class ElementProxy
public java.lang.String getBaseLocalName()
getBaseLocalName
in class ElementProxy
public boolean getUsableInEncryptedData()
public boolean getUsableInEncryptedKey()
public byte[] wrap(java.security.Key contentKey, java.security.Key wrapKey) throws XMLSecurityException
contentKey
- wrapKey
-
XMLSecurityException
public byte[] wrap(java.security.Key contentKey, java.security.Key wrapKey, byte[] IV) throws XMLSecurityException
contentKey
- wrapKey
- IV
-
XMLSecurityException
public java.security.Key unwrap(byte[] wrappedKey, java.security.Key wrapKey, java.lang.String wrappedKeyAlgoURI) throws XMLSecurityException
wrappedKey
- wrapKey
- wrappedKeyAlgoURI
-
XMLSecurityException
public byte[] encrypt(byte[] plaintextBytes, java.security.Key contentKey) throws XMLSecurityException
plaintextBytes
- contentKey
-
XMLSecurityException
public byte[] encrypt(byte[] plaintextBytes, java.security.Key contentKey, byte[] IV) throws XMLSecurityException
plaintextBytes
- contentKey
- IV
-
XMLSecurityException
public byte[] decrypt(byte[] ciphertextBytes, java.security.Key contentKey) throws XMLSecurityException
ciphertextBytes
- contentKey
-
XMLSecurityException
public EncryptionMethodParams getParams()
public int getIvLength()
public int getBlockSize()
public java.security.Key createSecretKeyFromBytes(byte[] encodedKey) throws XMLSecurityException
encodedKey
-
XMLSecurityException
public static void providerInit()
public static boolean register(java.lang.String algorithmURI, java.lang.String implementingClass)
algorithmURI
- implementingClass
- public java.lang.String encryptB64(byte[] plaintextBytes, java.security.Key contentKey, byte[] IV) throws XMLSecurityException
XMLSecurityException
public java.lang.String encryptB64(byte[] plaintextBytes, java.security.Key contentKey) throws XMLSecurityException
XMLSecurityException
public byte[] decryptB64(java.lang.String ciphertext, java.security.Key contentKey) throws XMLSecurityException
XMLSecurityException
public java.lang.String wrapB64(java.security.Key contentKey, java.security.Key wrapKey) throws XMLSecurityException
XMLSecurityException
public java.lang.String wrapB64(java.security.Key contentKey, java.security.Key wrapKey, byte[] IV) throws XMLSecurityException
XMLSecurityException
public java.security.Key unwrapB64(java.lang.String wrappedKey, java.security.Key wrapKey, java.lang.String wrappedKeyAlgoURI) throws XMLSecurityException
XMLSecurityException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |