Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## be.fedict.eid.applet.service.impl
Class AuthenticationChallenge

    java.lang.Object
      be.fedict.eid.applet.service.impl.AuthenticationChallenge

All Implemented Interfaces:
  Serializable

    public class AuthenticationChallenge

extends Object
implements Serializable

Authentication Challenge. Manages challenge freshness and randomness.

Author:
  Frank Cornelis
See Also:
  Serialized Form

Field Summary
`static String` | `AUTHN_CHALLENGE_SESSION_ATTRIBUTE`
`static long` | `DEFAULT_MAX_MATURITY` The default maximum allowed maturity of the challenge in milliseconds.

Method Summary
`static byte[]` | `generateChallenge(HttpSession session)` Generates a challenge and stores it in the given HTTP session for later consumption.
`static byte[]` | `getAuthnChallenge(HttpSession session, Long maxMaturity)` Gives back the authentication challenge.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Field Detail

### AUTHN_CHALLENGE_SESSION_ATTRIBUTE

    public static final String AUTHN_CHALLENGE_SESSION_ATTRIBUTE

### DEFAULT_MAX_MATURITY

    public static final long DEFAULT_MAX_MATURITY

  The default maximum allowed maturity of the challenge in milliseconds.

  See Also:
    Constant Field Values

Method Detail

### generateChallenge

    public static byte[] generateChallenge(HttpSession session)

  Generates a challenge and stores it in the given HTTP session for later consumption.

  Parameters:
    `session` -
  Returns:
    the challenge.

### getAuthnChallenge

    public static byte[] getAuthnChallenge(HttpSession session,
                                           Long maxMaturity)

  Gives back the authentication challenge. This challenge is checked for freshness and can be consumed only once.

  Parameters:
    `session` -
    `maxMaturity` -
  Returns:

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2008-2012 FedICT. All Rights Reserved.