public class Decrypter extends Decrypter
EncryptedElementType
objects.
For information on other parameters and options, and general XML Encryption issues,
see Decrypter
.
Modifier and Type | Field and Description |
---|---|
private org.slf4j.Logger |
log
Class logger.
|
Constructor and Description |
---|
Decrypter(DecryptionParameters params)
Constructor.
|
Decrypter(KeyInfoCredentialResolver newResolver,
KeyInfoCredentialResolver newKEKResolver,
EncryptedKeyResolver newEncKeyResolver)
Constructor.
|
Decrypter(KeyInfoCredentialResolver newResolver,
KeyInfoCredentialResolver newKEKResolver,
EncryptedKeyResolver newEncKeyResolver,
Collection<String> whitelistAlgos,
Collection<String> blacklistAlgos)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Assertion |
decrypt(EncryptedAssertion encryptedAssertion)
Decrypt the specified EncryptedAssertion.
|
Attribute |
decrypt(EncryptedAttribute encryptedAttribute)
Decrypt the specified EncryptedAttribute.
|
SAMLObject |
decrypt(EncryptedID encryptedID)
Decrypt the specified EncryptedID.
|
NewID |
decrypt(NewEncryptedID newEncryptedID)
Decrypt the specified NewEncryptedID.
|
private SAMLObject |
decryptData(EncryptedElementType encElement)
Decrypt the specified instance of EncryptedElementType, and return it as an instance
of the specified QName.
|
buildParserPool, checkAndMarshall, decryptData, decryptData, decryptDataToDOM, decryptDataToDOM, decryptDataToList, decryptDataToList, decryptKey, decryptKey, getJCAProviderName, getKEKResolverCriteria, getKeyResolverCriteria, isRootInNewDocument, preProcessEncryptedKey, setJCAProviderName, setKEKResolverCriteria, setKeyResolverCriteria, setRootInNewDocument, validateAlgorithms, validateAlgorithms, validateAlgorithmURI
public Decrypter(DecryptionParameters params)
params
- decryption parameters to usepublic Decrypter(@Nullable KeyInfoCredentialResolver newResolver, @Nullable KeyInfoCredentialResolver newKEKResolver, @Nullable EncryptedKeyResolver newEncKeyResolver)
newResolver
- resolver for data encryption keys.newKEKResolver
- resolver for key encryption keys.newEncKeyResolver
- resolver for EncryptedKey elementspublic Decrypter(@Nullable KeyInfoCredentialResolver newResolver, @Nullable KeyInfoCredentialResolver newKEKResolver, @Nullable EncryptedKeyResolver newEncKeyResolver, @Nullable Collection<String> whitelistAlgos, @Nullable Collection<String> blacklistAlgos)
newResolver
- resolver for data encryption keys.newKEKResolver
- resolver for key encryption keys.newEncKeyResolver
- resolver for EncryptedKey elementswhitelistAlgos
- collection of whitelisted algorithm URIsblacklistAlgos
- collection of blacklisted algorithm URIspublic Assertion decrypt(@Nonnull EncryptedAssertion encryptedAssertion) throws DecryptionException
encryptedAssertion
- the EncryptedAssertion to decryptDecryptionException
- thrown when decryption generates an errorpublic Attribute decrypt(@Nonnull EncryptedAttribute encryptedAttribute) throws DecryptionException
encryptedAttribute
- the EncryptedAttribute to decryptDecryptionException
- thrown when decryption generates an errorpublic SAMLObject decrypt(@Nonnull EncryptedID encryptedID) throws DecryptionException
Note that an EncryptedID can contain a NameID, an Assertion or a BaseID. It is up to the caller to determine the type of the resulting SAMLObject.
encryptedID
- the EncryptedID to decryptDecryptionException
- thrown when decryption generates an errorpublic NewID decrypt(@Nonnull NewEncryptedID newEncryptedID) throws DecryptionException
newEncryptedID
- the NewEncryptedID to decryptDecryptionException
- thrown when decryption generates an errorprivate SAMLObject decryptData(@Nonnull EncryptedElementType encElement) throws DecryptionException
encElement
- the EncryptedElementType to decryptDecryptionException
- thrown when decryption generates an errorCopyright © 1999–2020 Shibboleth Consortium. All rights reserved.