fr.cnes.sitools.security.challenge
Interface ChallengeToken

All Known Implementing Classes:
ChallengeTokenContainer

public interface ChallengeToken

Challenge token container interface

Author:
m.gond

Method Summary
 java.lang.String getToken(java.lang.String value)
          Gets a new valid Token.
 java.lang.String getTokenValue(java.lang.String token)
          Get the value associated to the given token. null if the token doesn't exists
 void invalidToken(java.lang.String token)
          Manually invalidate a token
 boolean isValid(java.lang.String token)
          Check if the given token is valid
 

Method Detail

getToken

java.lang.String getToken(java.lang.String value)
Gets a new valid Token. Stores the given value associated to that token

Parameters:
value - the value to associate
Returns:
the token String

getTokenValue

java.lang.String getTokenValue(java.lang.String token)
Get the value associated to the given token. null if the token doesn't exists

Parameters:
token - the token
Returns:
the value associated to the given token or null if the token doesn't exists

isValid

boolean isValid(java.lang.String token)
Check if the given token is valid

Parameters:
token - the token String to check
Returns:
true if the token is valid, false otherwise

invalidToken

void invalidToken(java.lang.String token)
Manually invalidate a token

Parameters:
token - the token to invalidate


Copyright © 2010-2013 CNES. All Rights Reserved.