public class PopulateECPContext extends AbstractConditionalProfileAction
ECPContext
based on the request and, when encryption is in use,
generating a session key.Constructor and Description |
---|
PopulateECPContext()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected void |
doExecute(ProfileRequestContext profileRequestContext)
Performs this action.
|
void |
setECPContextCreationStrategy(com.google.common.base.Function<ProfileRequestContext,ECPContext> strategy)
Set the strategy used to locate the
ECPContext to operate on. |
void |
setEncryptionContextLookupStrategy(com.google.common.base.Function<ProfileRequestContext,EncryptionContext> strategy)
Set the strategy used to locate the
EncryptionContext . |
void |
setRandomGenerator(SecureRandom generator)
Set the source of randomness to use, or none to bypass key generation.
|
void |
setRequireEncryption(boolean flag)
Set whether to require assertion encryption or skip session key generation.
|
doPreExecute, getActivationCondition, setActivationCondition
doPostExecute, doPostExecute, execute, getHttpServletRequest, getHttpServletResponse, getLogPrefix, setHttpServletRequest, setHttpServletResponse
destroy, doDestroy, doInitialize, initialize, isDestroyed, isInitialized
public PopulateECPContext() throws NoSuchAlgorithmException
NoSuchAlgorithmException
- if unable to construct default random generatorpublic void setECPContextCreationStrategy(@Nonnull com.google.common.base.Function<ProfileRequestContext,ECPContext> strategy)
ECPContext
to operate on.strategy
- lookup strategypublic void setEncryptionContextLookupStrategy(@Nonnull com.google.common.base.Function<ProfileRequestContext,EncryptionContext> strategy)
EncryptionContext
.strategy
- lookup strategypublic void setRandomGenerator(@Nullable SecureRandom generator)
generator
- random number generatorpublic void setRequireEncryption(boolean flag)
flag
- flag to setprotected void doExecute(@Nonnull ProfileRequestContext profileRequestContext)
doExecute
in class AbstractProfileAction
profileRequestContext
- the current IdP profile request contextCopyright © 2017. All rights reserved.