|
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 | |||||||||
java.lang.Objectuk.co.weft.dbutil.JDBCAuthenticator
an authenticator which authenticates against a JDBC data source
| Field Summary | |
protected java.lang.String[] |
allTokens
tokens whose values are required to authenticate via JDBC |
static int |
DEFAULTSIZE
the default size of widgets I request |
protected java.lang.String[] |
noUrlTokens
the above, less the db url token, for use when the db url is known |
protected boolean |
requestURL
selects which of the above two token sets to use; set false only if the db url will certainly be known |
| Fields inherited from interface uk.co.weft.dbutil.Authenticator |
BADDATA, ISVALID, NODATA, TOKEN_FEATURE_ACCEPT_DEFAULT, TOKEN_FEATURE_OPTIONAL, TOKEN_FEATURE_SECRET, UNKNOWN |
| Constructor Summary | |
JDBCAuthenticator()
|
|
| Method Summary | |
int |
getFeatures(java.lang.String token)
return the features which apply to this token. |
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)
DOCUMENT ME! |
int |
getSize(java.lang.String token)
what is the maximum acceptable length of the value of this token? |
void |
init(Context config)
is there a database url in the configuration? If so there's no need to prompt for one. |
java.lang.String[] |
interestingTokens()
what tokens am I interested in in a context? |
int |
isAuthentic(Context context)
Is the information in this context authentic? |
boolean |
isSecret(java.lang.String token)
Deprecated. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int DEFAULTSIZE
protected java.lang.String[] allTokens
protected java.lang.String[] noUrlTokens
protected boolean requestURL
| Constructor Detail |
public JDBCAuthenticator()
| Method Detail |
public void init(Context config)
init in interface Authenticatorconfig - a context within which I may find my configurationpublic int isAuthentic(Context context)
isAuthentic in interface Authenticatorpublic java.lang.String[] interestingTokens()
interestingTokens in interface Authenticatorpublic boolean isSecret(java.lang.String token)
isSecret in interface Authenticatortoken - the token, should be one of my interesting tokens
Authenticator.getFeatures(String)public java.lang.String getPrompt(java.lang.String token)
getPrompt in interface Authenticatortoken - DOCUMENT ME!
public int getSize(java.lang.String token)
getSize in interface Authenticatortoken - the token, should be one of my interesting tokens
public java.lang.String getHelp(java.lang.String token)
getHelp in interface Authenticatortoken - the token, should be one of my interesting tokens
public int getFeatures(java.lang.String token)
getFeatures in interface Authenticatortoken -
|
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 | |||||||||