Module org.glassfish.soteria
Class OpenIdNonce
- java.lang.Object
-
- org.glassfish.soteria.mechanisms.openid.domain.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 Summary
Constructors Constructor Description OpenIdNonce()OpenIdNonce(int byteLength)OpenIdNonce(String value)Creates a new nonce with the given nonce value.
-
-
-
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 benullor empty.
-
OpenIdNonce
public OpenIdNonce(int byteLength)
- Parameters:
byteLength- The byte length of the randomly generated value.
-
-