|
jacquard 1.12.0 by The Web Engineering Factory and Toolworks | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
an interface describing an agent which can authenticate a context
| Field Summary | |
static int |
BADDATA
return value indicating that the data (e.g. |
static int |
ISVALID
return value indicating that the context is valid |
static int |
NODATA
return value indicating that there wasn't enough data to determine whether the context was valid (e.g. |
static int |
TOKEN_FEATURE_ACCEPT_DEFAULT
Token features: bitwise andable values which allow information about the features of a token to be combined into a single return value. |
static int |
TOKEN_FEATURE_OPTIONAL
Token features: bitwise andable values which allow information about the features of a token to be combined into a single return value. |
static int |
TOKEN_FEATURE_SECRET
Token features: bitwise andable values which allow information about the features of a token to be combined into a single return value. |
static int |
UNKNOWN
return value indicating failure to determine authenticity (e.g. |
| Method Summary | |
int |
getFeatures(java.lang.String token)
what features does this authentication token have? |
java.lang.String |
getHelp(java.lang.String token)
what is the appropriate help string for this token? |
java.lang.String |
getPrompt(java.lang.String token)
what is the appropriate user prompt for this token? |
int |
getSize(java.lang.String token)
what is the maximum acceptable length of the value of this token? |
void |
init(Context config)
initialise me with information from this context |
java.lang.String[] |
interestingTokens()
what tokens am I interested in in a context? |
int |
isAuthentic(Context context)
Is the information in this context authentic? Return true if happy, false if unhappy for any reason |
boolean |
isSecret(java.lang.String token)
Deprecated. use getFeatures( token) instead |
| Field Detail |
public static final int ISVALID
public static final int NODATA
public static final int BADDATA
public static final int UNKNOWN
public static final int TOKEN_FEATURE_SECRET
public static final int TOKEN_FEATURE_OPTIONAL
public static final int TOKEN_FEATURE_ACCEPT_DEFAULT
| Method Detail |
public void init(Context config)
config - a context within which I may find my configurationpublic int isAuthentic(Context context)
public java.lang.String[] interestingTokens()
public boolean isSecret(java.lang.String token)
token - the token, should be one of my interesting tokens
getFeatures(String)public int getFeatures(java.lang.String token)
token -
public java.lang.String getPrompt(java.lang.String token)
token - the token, should be one of my interesting tokens
public int getSize(java.lang.String token)
token - the token, should be one of my interesting tokens
public java.lang.String getHelp(java.lang.String token)
token - the token, should be one of my interesting tokens
|
jacquard 1.12.0 by The Web Engineering Factory and Toolworks | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||