|
![]() |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This is the interface that Java user manager classes must implement to support the authentication interface that receives a user name as well as a password. The implementation of the authenticate method should return whether or not the application/user/password/context combination is valid.
If your class implements this interface then it will take precedence over the UserManager and UserManager2 interfaces.
In addition to the function in this interface, implementing classes must declare a default constructor.
Field Summary | |
static int |
AUTH_FAILURE_PASSWORD_INVALID
Constant denoting that authentication failed due to an invalid password. |
static int |
AUTH_FAILURE_UNKNOWN
Constant denoting that authentication failed due to an unspecified error. |
static int |
AUTH_FAILURE_USER_INVALID
Constant denoting that authentication failed due to an invalid user name. |
static int |
AUTH_SUCCESS
Constant denoting that authentication was a success. |
Method Summary | |
int |
authenticate(java.lang.String appName,
java.lang.String userName,
java.lang.String password,
java.lang.String context,
VariableMap connectionVariables)
Determines if the application/user/password/context combination is correct for the given user in the given application. |
Field Detail |
public static final int AUTH_FAILURE_PASSWORD_INVALID
public static final int AUTH_FAILURE_USER_INVALID
public static final int AUTH_FAILURE_UNKNOWN
public static final int AUTH_SUCCESS
Method Detail |
public int authenticate(java.lang.String appName, java.lang.String userName, java.lang.String password, java.lang.String context, VariableMap connectionVariables) throws java.lang.Exception
See the Droplets User Manager documentation for more information on how to implement this method.
appName
- the name of the Droplet application the user is
requestinguserName
- the username the user entered in the
authentication dialog boxpassword
- the password the user entered in the
authentication dialog boxcontext
- the context the user selected in the authentication
dialog boxconnectionVariables
- the parameters of the connection. This is
the same as those available via Application.getVariableValue()
:java.lang.Exception
- any exception thrown is caught and logged
by the Droplet ServerApplication.getVariableValue(java.lang.String)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |