Class ECPContext

  • All Implemented Interfaces:
    Iterable<org.opensaml.messaging.context.BaseContext>

    public final class ECPContext
    extends org.opensaml.messaging.context.BaseContext
    Context, usually attached to a MessageContext that carries state associated with an ECP request that is needed during response generation.
    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.opensaml.messaging.context.BaseContext

        org.opensaml.messaging.context.BaseContext.ContextSetNoRemoveIteratorDecorator
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private boolean requestAuthenticated
      Whether the request was authenticated.
      private byte[] sessionKey
      Generated session key.
    • Constructor Summary

      Constructors 
      Constructor Description
      ECPContext()  
    • Field Detail

      • requestAuthenticated

        private boolean requestAuthenticated
        Whether the request was authenticated.
      • sessionKey

        @Nullable
        private byte[] sessionKey
        Generated session key.
    • Constructor Detail

      • ECPContext

        public ECPContext()
    • Method Detail

      • isRequestAuthenticated

        public boolean isRequestAuthenticated()
        Get whether the request from the SP was authenticated.
        Returns:
        true iff the SP request was authenticated
      • setRequestAuthenticated

        @Nonnull
        public ECPContext setRequestAuthenticated​(boolean flag)
        Set whether the request from the SP was authenticated.
        Parameters:
        flag - flag to set
        Returns:
        this context
      • getSessionKey

        @Nullable
        public byte[] getSessionKey()
        Get the session key generated for use by the client and IdP.
        Returns:
        the generated session key bytes
      • setSessionKey

        @Nonnull
        public ECPContext setSessionKey​(byte[] key)
        Set the session key generated for use by the client and IdP.
        Parameters:
        key - key to set
        Returns:
        this context