Class PopulateECPContext

All Implemented Interfaces:
Component, DestructableComponent, InitializableComponent, ProfileAction

public class PopulateECPContext extends AbstractConditionalProfileAction
Action to create and populate an ECPContext based on the request and, when encryption is in use, generating a session key.
Event:
EventIds.PROCEED_EVENT_ID, EventIds.INVALID_MSG_CTX
  • Field Details

  • Constructor Details

  • Method Details

    • setECPContextCreationStrategy

      public void setECPContextCreationStrategy(@Nonnull Function<ProfileRequestContext,ECPContext> strategy)
      Set the strategy used to locate the ECPContext to operate on.
      Parameters:
      strategy - lookup strategy
    • setEncryptionContextLookupStrategy

      public void setEncryptionContextLookupStrategy(@Nonnull Function<ProfileRequestContext,EncryptionContext> strategy)
      Set the strategy used to locate the EncryptionContext.
      Parameters:
      strategy - lookup strategy
    • setRandomGenerator

      public void setRandomGenerator(@Nullable SecureRandom generator)
      Set the source of randomness to use, or none to bypass key generation.
      Parameters:
      generator - random number generator
    • setRequireEncryption

      public void setRequireEncryption(boolean flag)
      Set whether to require assertion encryption or skip session key generation.
      Parameters:
      flag - flag to set
    • doExecute

      protected void doExecute(@Nonnull ProfileRequestContext profileRequestContext)
      Performs this action. Actions must override this method to perform their work.
      Overrides:
      doExecute in class AbstractProfileAction
      Parameters:
      profileRequestContext - the current IdP profile request context