public class WSSEncryptionProvider extends AMEncryptionProvider
WSSEncryptionProvider
is a class for encrypting and
decrypting WSS XML Documents which implements
AMEncryptionProvider
.keyMap, keyProvider
Constructor and Description |
---|
WSSEncryptionProvider()
Creates a new instance of WSSEncryptionProvider
|
Modifier and Type | Method and Description |
---|---|
Key |
decryptKey(Element encryptedKey,
String certAlias)
Decrypt the given encrypted key.
|
Document |
encryptAndReplaceWSSElements(Document doc,
Map elmMap,
String encDataEncAlg,
int encDataEncAlgStrength,
String certAlias,
int kekStrength,
String tokenType,
String providerID)
Encrypts the given WSS XML element in a given XML Context document.
|
decryptAndReplace, decryptAndReplace, encryptAndReplace, encryptAndReplace, encryptAndReplace, encryptAndReplaceResourceID, encryptAndReplaceResourceID, generateSecretKey, getEncryptionAlgorithm, getPrivateKey, initialize
public WSSEncryptionProvider()
public Document encryptAndReplaceWSSElements(Document doc, Map elmMap, String encDataEncAlg, int encDataEncAlgStrength, String certAlias, int kekStrength, String tokenType, String providerID) throws EncryptionException
encryptAndReplaceWSSElements
in interface EncryptionProvider
encryptAndReplaceWSSElements
in class AMEncryptionProvider
doc
- the context XML Document.elmMap
- Map of (Element, wsu_id) to be encrypted.encDataEncAlg
- Encryption Key Algorithm.encDataEncAlgStrength
- Encryption Key Strength.certAlias
- Key Encryption Key cert alias.kekStrength
- Key Encryption Key Strength.tokenType
- Security token type.providerID
- Provider ID.EncryptionException
public Key decryptKey(Element encryptedKey, String certAlias)
decryptKey
in interface EncryptionProvider
decryptKey
in class AMEncryptionProvider
encryptedKey
- the encrypted key elementcertAlias
- the private key aliasCopyright © 2010–2025 Open Identity Platform Community. All rights reserved.