public abstract class AbstractDecryptAction extends AbstractProfileAction
The actual message to handle is obtained via strategy function, by default the inbound message.
The SecurityParametersContext governing the decryption process is located by a lookup
strategy, by default a child of the inbound message context.
| Modifier and Type | Field and Description |
|---|---|
private Decrypter |
decrypter
The decryption object.
|
private com.google.common.base.Predicate<net.shibboleth.utilities.java.support.collection.Pair<ProfileRequestContext,EncryptedElementType>> |
decryptionPredicate
Predicate determining whether to attempt decryption.
|
private boolean |
errorFatal
Are decryption failures a fatal condition?
|
private Logger |
log
Class logger.
|
private SAMLObject |
message
Message to operate on.
|
private com.google.common.base.Function<ProfileRequestContext,Object> |
messageLookupStrategy
Strategy used to locate the SAML message to operate on.
|
private com.google.common.base.Function<ProfileRequestContext,org.opensaml.xmlsec.context.SecurityParametersContext> |
securityParamsLookupStrategy
Strategy used to locate the
SecurityParametersContext. |
| Constructor and Description |
|---|
AbstractDecryptAction()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
doPreExecute(ProfileRequestContext profileRequestContext) |
Decrypter |
getDecrypter()
Get the decrypter.
|
com.google.common.base.Predicate<net.shibboleth.utilities.java.support.collection.Pair<ProfileRequestContext,EncryptedElementType>> |
getDecryptionPredicate()
Get the predicate used to determine whether to attempt decryption.
|
SAMLObject |
getSAMLObject()
Get the object to act on.
|
boolean |
isErrorFatal()
Get whether decryption failure should be treated as an error or ignored.
|
void |
setDecryptionPredicate(com.google.common.base.Predicate<net.shibboleth.utilities.java.support.collection.Pair<ProfileRequestContext,EncryptedElementType>> predicate)
Set the predicate used to determine whether to attempt decryption.
|
void |
setErrorFatal(boolean flag)
Set whether decryption failure should be treated as an error or ignored.
|
void |
setMessageLookupStrategy(com.google.common.base.Function<ProfileRequestContext,Object> strategy)
Set the strategy used to locate the
SAMLObject to operate on. |
void |
setSecurityParametersContextLookupStrategy(com.google.common.base.Function<ProfileRequestContext,org.opensaml.xmlsec.context.SecurityParametersContext> strategy)
Set the strategy used to locate the
SecurityParametersContext associated with a given
ProfileRequestContext. |
doExecute, doPostExecute, doPostExecute, execute, getHttpServletRequest, getHttpServletResponse, getLogPrefix, setHttpServletRequest, setHttpServletResponsedestroy, doDestroy, doInitialize, initialize, isDestroyed, isInitializedprivate boolean errorFatal
@Nonnull private com.google.common.base.Function<ProfileRequestContext,org.opensaml.xmlsec.context.SecurityParametersContext> securityParamsLookupStrategy
SecurityParametersContext.@Nonnull private com.google.common.base.Function<ProfileRequestContext,Object> messageLookupStrategy
@Nonnull private com.google.common.base.Predicate<net.shibboleth.utilities.java.support.collection.Pair<ProfileRequestContext,EncryptedElementType>> decryptionPredicate
@Nullable private SAMLObject message
public boolean isErrorFatal()
public void setErrorFatal(boolean flag)
flag - true iff decryption failure should be fatalpublic void setSecurityParametersContextLookupStrategy(@Nonnull com.google.common.base.Function<ProfileRequestContext,org.opensaml.xmlsec.context.SecurityParametersContext> strategy)
SecurityParametersContext associated with a given
ProfileRequestContext.strategy - strategy used to locate the SecurityParametersContext associated with a given
ProfileRequestContextpublic void setMessageLookupStrategy(@Nonnull com.google.common.base.Function<ProfileRequestContext,Object> strategy)
SAMLObject to operate on.strategy - strategy used to locate the SAMLObject to operate on@Nonnull public com.google.common.base.Predicate<net.shibboleth.utilities.java.support.collection.Pair<ProfileRequestContext,EncryptedElementType>> getDecryptionPredicate()
public void setDecryptionPredicate(@Nonnull com.google.common.base.Predicate<net.shibboleth.utilities.java.support.collection.Pair<ProfileRequestContext,EncryptedElementType>> predicate)
predicate - predicate to use@Nullable public SAMLObject getSAMLObject()
protected boolean doPreExecute(@Nonnull ProfileRequestContext profileRequestContext)
doPreExecute in class AbstractProfileActionCopyright © 1999–2020 Shibboleth Consortium. All rights reserved.