Constructor
new AuthenticationToken(options)
- Source:
Example
subject.login(new AuthenticationToken('zhangsan','123456'))
Parameters:
Name | Type | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
object | 选项对象
Properties
|
Members
(protected) credentials
- Source:
用户凭据
(protected) principals
- Source:
用户身份
(protected) uuid
- Source:
- Default Value:
- null
用户唯一 id
Methods
getCredentials() → {string}
- Source:
获取用户凭证
Returns:
- Type
- string
getPrincipals() → {string}
- Source:
获取用户身份
Returns:
- Type
- string
getUUID() → {string|number}
- Source:
获取用户的 UUID
Returns:
- Type
- string | number