| Package | Description |
|---|---|
| org.apache.xml.security.encryption | |
| org.apache.xml.security.encryption.keys.content | |
| org.apache.xml.security.keys | |
| org.apache.xml.security.utils |
| Modifier and Type | Method and Description |
|---|---|
static KeyDerivationParameters |
XMLCipherUtil.constructKeyDerivationParameter(KeyDerivationMethod keyDerivationMethod,
int keyBitLength)
Construct a KeyDerivationParameter object from the given keyDerivationMethod data
and keyBitLength.
|
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 |
Serializer.deserialize(byte[] source,
Node ctx) |
Node |
TransformSerializer.deserialize(byte[] source,
Node ctx) |
Node |
DocumentSerializer.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,
AlgorithmParameterSpec params,
SecureRandom random) |
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(Serializer serializer,
String transformation)
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)
Returns an
XMLCipher that implements the specified
transformation and operates on the specified context 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(Serializer serializer,
String transformation,
String provider,
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 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,
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. |
void |
XMLCipher.validateAndUpdateKeyAgreementParameterKeys(KeyAgreementParameters keyAgreementParameter)
Method validates and updates if needed the KeyAgreementParameterSpec with the required keys.
|
| Constructor and Description |
|---|
XMLCipherInput(CipherData data)
Constructor for processing encrypted octets
|
XMLCipherInput(EncryptedType input)
Constructor for processing encrypted octets
|
| Constructor and Description |
|---|
AgreementMethodImpl(Document doc,
KeyAgreementParameters keyAgreementParameter)
Constructor AgreementMethodImpl for generating AgreementMethod from scratch based on
KeyAgreementParameters. |
| Modifier and Type | Method and Description |
|---|---|
void |
KeyInfo.add(EncryptedKey encryptedKey)
Method addEncryptedKey
|
| Modifier and Type | Method and Description |
|---|---|
static SecretKey |
KeyUtils.aesWrapKeyWithDHGeneratedKey(KeyAgreementParameters parameterSpec)
Method generates a secret key for given KeyAgreementParameterSpec.
|
static KeyPair |
KeyUtils.generateEphemeralDHKeyPair(PublicKey recipientPublicKey,
Provider provider)
Method generates DH keypair which match the type of given public key type.
|
static int |
KeyUtils.getAESKeyBitSizeForWrapAlgorithm(String keyWrapAlg)
Defines the key size for the encrypting algorithm.
|
Copyright © 2000–2025 The Apache Software Foundation. All rights reserved.