Class OpenIdState

  • All Implemented Interfaces:
    Serializable

    public class OpenIdState
    extends Object
    implements Serializable
    Class to hold state of OpenId

    This is used in the authentication mechanism to both help prevent CSRF and to pass data to the callback page.

    Author:
    Gaurav Gupta, jonathan, Rudy De Busscher
    See Also:
    Serialized Form
    • Constructor Detail

      • OpenIdState

        public OpenIdState()
        Creates a new instance with a random UUID as the state.
      • OpenIdState

        public OpenIdState​(String state)
        Creates a new instance set the state to what is in the constructor.

        This can be used so that the callback page knows the originating page, but is not used by the OpenIdAuthenticationMechanism by default

        Parameters:
        state - the state to encapsulate