Table of Contents |
---|
Anchor | ||||
---|---|---|---|---|
|
Attribute | type | values | default | mandate | comment |
---|---|---|---|---|---|
serial | string | true | |||
Identifier | String | true | |||
Status | String | ACTIVE, | |||
description | string | false | |||
users | coll | ||||
assignedUsers | coll | ||||
sharedUsers | coll | ||||
product | object | true | |||
repository | object | false |
Anchor | ||||
---|---|---|---|---|
|
Examples 1:
Code Block | ||||
---|---|---|---|---|
| ||||
{ "attrs": [ "product.id": "pid", "user.id": "userid", "pin": "tokenpin" ] } |
...
Code Block | ||||
---|---|---|---|---|
| ||||
{ "error":0, "result": { "id": "tokenid1" } } |
Anchor | ||||
---|---|---|---|---|
|
Examples:
Method: /token/get
Code Block | ||||
---|---|---|---|---|
| ||||
{ "match": [ "serial":"token serial" ], "return":["id", "serial","status"] } |
...
Code Block | ||||
---|---|---|---|---|
| ||||
{ "error":0, "result": { "id": "token id1", "serial": "serial1", "status": "ACTIVE" } } |
Anchor | ||||
---|---|---|---|---|
|
Examples:
Method:/token/set
Code Block | ||||
---|---|---|---|---|
| ||||
{ "id": "token id1", "attrs": { "status": "DISABLED" } } |
...
Code Block | ||||
---|---|---|---|---|
| ||||
{ "error":0 } |
Anchor | ||||
---|---|---|---|---|
|
Examples:
Method:/token/delete
...
Code Block | ||||
---|---|---|---|---|
| ||||
{ "error":0 } |
Anchor | ||||
---|---|---|---|---|
|
Examples:
Method:/token/reset
...
Code Block | ||||
---|---|---|---|---|
| ||||
{ "error":0 } |
Anchor | ||||
---|---|---|---|---|
|
To confine a token, the token cannot be downloaded again.
...
Code Block | ||||
---|---|---|---|---|
| ||||
{ "error":0 } |
Anchor | ||||
---|---|---|---|---|
|
To release a token, the token can be downloaded again
...
Code Block | ||||
---|---|---|---|---|
| ||||
{ "error":0 } |
Anchor | ||||
---|---|---|---|---|
|
Import hardware tokens into token repository
...
Code Block | ||||
---|---|---|---|---|
| ||||
{ "error":0, "result": { "total":3, "rows": [ {"id":"xxx","serial":"1001"}, {"id":"yyy","serial":"1002"}, {"id":"zzz","serial":"1003"} ] } } |
Anchor | ||||
---|---|---|---|---|
|
Examples:
Method:/token/syncToken
...
Code Block | ||||
---|---|---|---|---|
| ||||
{ "error":0 } |
Anchor | ||||
---|---|---|---|---|
|
Examples:
Method:/token/batchAssignTokens
...
Code Block | ||
---|---|---|
| ||
domain,loginName,manufacturerCode,productCode,serial,status,pin "test domain", "john.smith", "DN", "MT", "10000", "ACTIVE", "1234" |
Anchor | ||||
---|---|---|---|---|
|
Examples:
Method:/token/downloadOfflineData
...