public class DecryptAssertions extends AbstractDecryptAction
EncryptedAssertion
element and replace it with the decrypted
Assertion
in situ.
All of the built-in SAML message types that may include an EncryptedAssertion
are
potentially handled, but the actual message to handle is obtained via strategy function, by
default the inbound message.
Modifier and Type | Field and Description |
---|---|
private org.slf4j.Logger |
log
Class logger.
|
Constructor and Description |
---|
DecryptAssertions() |
Modifier and Type | Method and Description |
---|---|
protected void |
doExecute(ProfileRequestContext profileRequestContext) |
private Assertion |
processEncryptedAssertion(ProfileRequestContext profileRequestContext,
EncryptedAssertion encAssert)
Decrypt an
EncryptedAssertion and return the result. |
private void |
processResponse(ProfileRequestContext profileRequestContext,
Response response)
Decrypt any
EncryptedAssertion found in a response and replace it with the result. |
doPreExecute, getDecrypter, getDecryptionPredicate, getSAMLObject, isErrorFatal, setDecryptionPredicate, setErrorFatal, setMessageLookupStrategy, setSecurityParametersContextLookupStrategy
doPostExecute, doPostExecute, execute, getHttpServletRequest, getHttpServletResponse, getLogPrefix, setHttpServletRequest, setHttpServletResponse
destroy, doDestroy, doInitialize, initialize, isDestroyed, isInitialized
@Nonnull private final org.slf4j.Logger log
protected void doExecute(@Nonnull ProfileRequestContext profileRequestContext)
doExecute
in class AbstractProfileAction
@Nullable private Assertion processEncryptedAssertion(@Nonnull ProfileRequestContext profileRequestContext, @Nonnull EncryptedAssertion encAssert) throws org.opensaml.xmlsec.encryption.support.DecryptionException
EncryptedAssertion
and return the result.profileRequestContext
- current profile request contextencAssert
- the encrypted objectorg.opensaml.xmlsec.encryption.support.DecryptionException
- if an error occurs during decryptionprivate void processResponse(@Nonnull ProfileRequestContext profileRequestContext, @Nonnull Response response) throws org.opensaml.xmlsec.encryption.support.DecryptionException
EncryptedAssertion
found in a response and replace it with the result.profileRequestContext
- current profile request contextresponse
- response to operate onorg.opensaml.xmlsec.encryption.support.DecryptionException
- if an error occursCopyright © 1999–2020 Shibboleth Consortium. All rights reserved.