UltraLite Static Java User's Guide
Synchronization Parameters Reference
Synchronization parameters
Reports the status of MobiLink user authentication.
short getAuthStatus( )
void setAuthStatus( short auth_status )
Access the parameter as follows:
UlSynchOptions opts = new UlSynchOptions; // set options here conn.synchronize( opts ); returncode = opts.getAuthStatus();
After synchronization, the parameter must hold one of the following values. If a custom authenticate_user synchronization script at the consolidated database returns a different value, the value is interpreted according to the rules given in authenticate_user connection event.
Constant | Value | Description |
---|---|---|
UlDefnUL_AUTH_STATUS_UNKNOWN | 0 | Authorization status is unknown, possibly because the connection has not yet synchronized. |
UlDefnUL_AUTH_STATUS_VALID | 1000 | User ID and password were valid at the time of synchronization. |
UlDefnUL_AUTH_STATUS_VALID_BUT_EXPIRES_SOON | 2000 | User ID and password were valid at thetime of synchronization but will expire soon. |
UlDefnUL_AUTH_STATUS_EXPIRED | 3000 | Authorization failed: user ID or password have expired. |
UlDefnUL_AUTH_STATUS_INVALID | 4000 | Authorization failed: bad user ID or password. |
UlDefnUL_AUTH_STATUS_IN_USE | 5000 | Authorization failed: user ID is already in use. |
Authenticating MobiLink Users.