Class DecryptAssertions
- java.lang.Object
-
- net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
-
- org.opensaml.profile.action.AbstractProfileAction
-
- org.opensaml.saml.saml2.profile.impl.AbstractDecryptAction
-
- org.opensaml.saml.saml2.profile.impl.DecryptAssertions
-
- All Implemented Interfaces:
Component,DestructableComponent,InitializableComponent,ProfileAction
public class DecryptAssertions extends AbstractDecryptAction
Action to decrypt anEncryptedAssertionelement and replace it with the decryptedAssertionin situ.All of the built-in SAML message types that may include an
EncryptedAssertionare potentially handled, but the actual message to handle is obtained via strategy function, by default the inbound message.
-
-
Field Summary
Fields Modifier and Type Field Description private org.slf4j.LoggerlogClass logger.
-
Constructor Summary
Constructors Constructor Description DecryptAssertions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddoExecute(ProfileRequestContext profileRequestContext)private AssertionprocessEncryptedAssertion(ProfileRequestContext profileRequestContext, EncryptedAssertion encAssert)Decrypt anEncryptedAssertionand return the result.private voidprocessResponse(ProfileRequestContext profileRequestContext, Response response)Decrypt anyEncryptedAssertionfound in a response and replace it with the result.-
Methods inherited from class org.opensaml.saml.saml2.profile.impl.AbstractDecryptAction
doPreExecute, getDecrypter, getDecryptionPredicate, getSAMLObject, isErrorFatal, setDecryptionPredicate, setErrorFatal, setMessageLookupStrategy, setSecurityParametersContextLookupStrategy
-
Methods inherited from class org.opensaml.profile.action.AbstractProfileAction
doPostExecute, doPostExecute, execute, getHttpServletRequest, getHttpServletResponse, getLogPrefix, setHttpServletRequest, setHttpServletResponse
-
Methods inherited from class net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
destroy, doDestroy, doInitialize, initialize, isDestroyed, isInitialized
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.shibboleth.utilities.java.support.component.InitializableComponent
initialize, isInitialized
-
-
-
-
Method Detail
-
doExecute
protected void doExecute(@Nonnull ProfileRequestContext profileRequestContext)- Overrides:
doExecutein classAbstractProfileAction
-
processEncryptedAssertion
@Nullable private Assertion processEncryptedAssertion(@Nonnull ProfileRequestContext profileRequestContext, @Nonnull EncryptedAssertion encAssert) throws DecryptionException
Decrypt anEncryptedAssertionand return the result.- Parameters:
profileRequestContext- current profile request contextencAssert- the encrypted object- Returns:
- the decrypted assertion, or null if the object did not need decryption
- Throws:
DecryptionException- if an error occurs during decryption
-
processResponse
private void processResponse(@Nonnull ProfileRequestContext profileRequestContext, @Nonnull Response response) throws DecryptionExceptionDecrypt anyEncryptedAssertionfound in a response and replace it with the result.- Parameters:
profileRequestContext- current profile request contextresponse- response to operate on- Throws:
DecryptionException- if an error occurs
-
-