public class AuthenticationChallenge extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
static String |
AUTHN_CHALLENGE_SESSION_ATTRIBUTE |
static long |
DEFAULT_MAX_MATURITY
The default maximum allowed maturity of the challenge in milliseconds.
|
Modifier and Type | Method and Description |
---|---|
static byte[] |
generateChallenge(HttpSession session)
Generates a challenge and stores it in the given HTTP session for later
consumption.
|
static byte[] |
getAuthnChallenge(HttpSession session)
Gives back the authentication challenge.
|
static byte[] |
getAuthnChallenge(HttpSession session,
Long maxMaturity)
Gives back the authentication challenge.
|
public static final String AUTHN_CHALLENGE_SESSION_ATTRIBUTE
public static final long DEFAULT_MAX_MATURITY
public static byte[] generateChallenge(HttpSession session)
session
- public static byte[] getAuthnChallenge(HttpSession session, Long maxMaturity)
session
- maxMaturity
- public static byte[] getAuthnChallenge(HttpSession session)
session
- Copyright © 2008-2015 FedICT. All Rights Reserved.