public class EncryptNameIDs extends AbstractEncryptAction
NameID
s in a message obtained from a lookup strategy,
by default the outbound message context.
Specific formats may be excluded from encryption, by default excluding the "entity" format.
Constructor and Description |
---|
EncryptNameIDs()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected void |
doExecute(ProfileRequestContext profileRequestContext)
Performs this action.
|
protected boolean |
doPreExecute(ProfileRequestContext profileRequestContext)
Called prior to execution, actions may override this method to perform pre-processing for a request.
|
protected EncryptionParameters |
getApplicableParameters(EncryptionContext ctx)
Return the right set of parameters for the operation to be performed, or none if no encryption should occur.
|
void |
setExcludedFormats(Collection<String> formats)
Set the
NameID formats to ignore and leave unencrypted. |
void |
setMessageLookupStrategy(com.google.common.base.Function<ProfileRequestContext,SAMLObject> strategy)
Set the strategy used to locate the
Response to operate on. |
getEncrypter, setEncryptionContextLookupStrategy, setKeyPlacementLookupStrategy, setRecipientLookupStrategy
getActivationCondition, setActivationCondition
doPostExecute, doPostExecute, execute, getHttpServletRequest, getHttpServletResponse, getLogPrefix, setHttpServletRequest, setHttpServletResponse
destroy, doDestroy, doInitialize, initialize, isDestroyed, isInitialized
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
initialize, isInitialized
public void setMessageLookupStrategy(@Nonnull com.google.common.base.Function<ProfileRequestContext,SAMLObject> strategy)
Response
to operate on.strategy
- strategy used to locate the Response
to operate onpublic void setExcludedFormats(@Nonnull @NonnullElements Collection<String> formats)
NameID
formats to ignore and leave unencrypted.formats
- formats to exclude@Nullable protected EncryptionParameters getApplicableParameters(@Nullable EncryptionContext ctx)
getApplicableParameters
in class AbstractEncryptAction
ctx
- possibly null input context to pull parameters fromprotected boolean doPreExecute(@Nonnull ProfileRequestContext profileRequestContext)
If false is returned, execution will not proceed, and the action should attach an
EventContext
to the context tree to signal how to continue with overall
workflow processing.
If returning successfully, the last step should be to return the result of the superclass version of this method.
doPreExecute
in class AbstractEncryptAction
profileRequestContext
- the current IdP profile request contextprotected void doExecute(@Nonnull ProfileRequestContext profileRequestContext)
doExecute
in class AbstractProfileAction
profileRequestContext
- the current IdP profile request contextCopyright © 2016 JBoss by Red Hat. All rights reserved.