Class OpenIdNonce

  • All Implemented Interfaces:
    Serializable

    public class OpenIdNonce
    extends Object
    implements Serializable
    Creates a random nonce as a character sequence of the specified byte length and base64 url encoded.
    Author:
    Gaurav Gupta, Rudy De Busscher
    See Also:
    Serialized Form
    • Constructor Detail

      • OpenIdNonce

        public OpenIdNonce()
      • OpenIdNonce

        public OpenIdNonce​(String value)
        Creates a new nonce with the given nonce value.
        Parameters:
        value - The nonce value. Must not be null or empty.
      • OpenIdNonce

        public OpenIdNonce​(int byteLength)
        Parameters:
        byteLength - The byte length of the randomly generated value.
    • Method Detail

      • getValue

        public String getValue()
        Returns:
        The generated random nonce.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object