Package | Description |
---|---|
org.apache.xml.security.encryption | |
org.apache.xml.security.keys |
Modifier and Type | Method and Description |
---|---|
protected static byte[] |
AbstractSerializer.createContext(byte[] source,
Node ctx) |
EncryptedData |
XMLCipher.createEncryptedData(int type,
String value)
Creates an
EncryptedData Element . |
EncryptedKey |
XMLCipher.createEncryptedKey(int type,
String value)
Creates an
EncryptedKey Element . |
Key |
XMLCipher.decryptKey(EncryptedKey encryptedKey)
Decrypt a key from a passed in EncryptedKey structure.
|
Key |
XMLCipher.decryptKey(EncryptedKey encryptedKey,
String algorithm)
Decrypt a key from a passed in EncryptedKey structure
|
byte[] |
XMLCipher.decryptToByteArray(Element element)
Decrypt an EncryptedData element to a byte array.
|
Node |
DocumentSerializer.deserialize(byte[] source,
Node ctx) |
Node |
TransformSerializer.deserialize(byte[] source,
Node ctx) |
Node |
Serializer.deserialize(byte[] source,
Node ctx) |
EncryptedKey |
XMLCipher.encryptKey(Document doc,
Key key)
Encrypts a key to an EncryptedKey structure
|
EncryptedKey |
XMLCipher.encryptKey(Document doc,
Key key,
String mgfAlgorithm,
byte[] oaepParams)
Encrypts a key to an EncryptedKey structure
|
EncryptedKey |
XMLCipher.encryptKey(Document doc,
Key key,
String mgfAlgorithm,
byte[] oaepParams,
SecureRandom random)
Encrypts a key to an EncryptedKey structure
|
byte[] |
XMLCipherInput.getBytes()
Dereferences the input and returns it as a single byte array.
|
static XMLCipher |
XMLCipher.getInstance()
Returns an
XMLCipher that implements no specific
transformation, and can therefore only be used for decrypt or
unwrap operations where the encryption method is defined in the
EncryptionMethod element. |
static XMLCipher |
XMLCipher.getInstance(String transformation)
Returns an
XMLCipher that implements the specified
transformation and operates on the specified context document. |
static XMLCipher |
XMLCipher.getInstance(String transformation,
Serializer serializer)
Returns an
XMLCipher that implements the specified
transformation, operates on the specified context document and serializes
the document with the specified serializer before it
encrypts the document. |
static XMLCipher |
XMLCipher.getInstance(String transformation,
String canon)
Returns an
XMLCipher that implements the specified
transformation, operates on the specified context document and serializes
the document with the specified canonicalization algorithm before it
encrypts the document. |
static XMLCipher |
XMLCipher.getInstance(String transformation,
String canon,
String digestMethod)
Returns an
XMLCipher that implements the specified
transformation, operates on the specified context document and serializes
the document with the specified canonicalization algorithm before it
encrypts the document. |
static XMLCipher |
XMLCipher.getProviderInstance(String provider)
Returns an
XMLCipher that implements no specific
transformation, and can therefore only be used for decrypt or
unwrap operations where the encryption method is defined in the
EncryptionMethod element. |
static XMLCipher |
XMLCipher.getProviderInstance(String transformation,
String provider)
Returns an
XMLCipher that implements the specified
transformation and operates on the specified context document. |
static XMLCipher |
XMLCipher.getProviderInstance(String transformation,
String provider,
Serializer serializer,
String digestMethod)
Returns an
XMLCipher that implements the specified
transformation, operates on the specified context document and serializes
the document with the specified Serializer before it encrypts the document. |
static XMLCipher |
XMLCipher.getProviderInstance(String transformation,
String provider,
String canon)
Returns an
XMLCipher that implements the specified
transformation, operates on the specified context document and serializes
the document with the specified canonicalization algorithm before it
encrypts the document. |
static XMLCipher |
XMLCipher.getProviderInstance(String transformation,
String provider,
String canon,
String digestMethod)
Returns an
XMLCipher that implements the specified
transformation, operates on the specified context document and serializes
the document with the specified canonicalization algorithm before it
encrypts the document. |
void |
XMLCipher.init(int opmode,
Key key)
Initializes this cipher with a key.
|
EncryptedData |
XMLCipher.loadEncryptedData(Document context,
Element element)
Returns an
EncryptedData interface. |
EncryptedKey |
XMLCipher.loadEncryptedKey(Document context,
Element element)
Returns an
EncryptedKey interface. |
EncryptedKey |
XMLCipher.loadEncryptedKey(Element element)
Returns an
EncryptedKey interface. |
void |
CipherData.setCipherReference(CipherReference reference)
Sets the
CipherData 's reference. |
void |
CipherData.setCipherValue(CipherValue value)
Sets the
CipherData 's value. |
Constructor and Description |
---|
XMLCipherInput(CipherData data)
Constructor for processing encrypted octets
|
XMLCipherInput(EncryptedType input)
Constructor for processing encrypted octets
|
Modifier and Type | Method and Description |
---|---|
void |
KeyInfo.add(EncryptedKey encryptedKey)
Method addEncryptedKey
|
Copyright © 2000–2020 The Apache Software Foundation. All rights reserved.