报告 MobiLink 用户鉴定的状态。
short getAuthStatus( )
void setAuthStatus( short auth_status )
按如下方法访问此参数:
UlSynchOptions opts = new UlSynchOptions; // set options here conn.synchronize( opts ); returncode = opts.getAuthStatus();
在同步之后,此参数必须包含下列值之一。如果统一数据库上的自定义 authenticate_user 同步脚本返回不同的值,则按照 authenticate_user 连接事件中给出的规则解释该值。
| 常量 | 值 | 说明 |
|---|---|---|
| UlDefnUL_AUTH_STATUS_UNKNOWN | 0 | 授权状态未知,可能是因为连接尚未同步。 |
| UlDefnUL_AUTH_STATUS_VALID | 1000 | 用户 ID 和口令在同步时是有效的。 |
| UlDefnUL_AUTH_STATUS_VALID_BUT_EXPIRES_SOON | 2000 | 用户 ID 和口令在同步时是有效的,但很快就要到期。 |
| UlDefnUL_AUTH_STATUS_EXPIRED | 3000 | 授权失败:用户 ID 或口令已过期。 |
| UlDefnUL_AUTH_STATUS_INVALID | 4000 | 授权失败:错误的用户 ID 或口令。 |
| UlDefnUL_AUTH_STATUS_IN_USE | 5000 | 授权失败:用户 ID 已在使用中。 |
SQL Anywhere Studio 9.0.2
版权所有 © 1989–2005 Sybase, Inc. 部分版权所有 © 2001–2005 iAnywhere Solutions, Inc. 保留所有权利。