Function name |
queryPermission(QueryPermission queryPermission) |
Description |
Resource owner can call this function to query Permissions that have been created. |
Request Parameters |
No. |
Parameter |
Type |
Required |
Description |
1 |
|
QueryPermission |
Y |
|
QueryPermission |
1 |
uid |
String |
Y |
ID in the Hub |
2 |
grantUid |
String |
N |
Authorized ID in the Hub |
3 |
flag |
UsedFlag |
N |
Access flag. YES: accessed; NO: Not accessed |
4 |
privateKey |
String |
Y |
Private key |
Response Parameters |
No. |
Parameter |
Type |
Required |
Description |
1 |
|
List<PermissionInfo> |
Y |
Query result, list of Permissions |
PermissionInfo |
1 |
uid |
String |
Y |
ID in the Hub |
2 |
grantUid |
String |
Y |
Authorized ID in the Hub |
3 |
url |
String |
Y |
The path of the stored resource |
4 |
grant |
String |
Y |
Operation permissions: WRITE/UPDATE/READ |
5 |
createTime |
LocalDateTime |
Y |
Authorization created time |
6 |
readTime |
LocalDateTime |
N |
Authorization used time |
7 |
flag |
UsedFlag |
Y |
Access flag. YES: accessed; NO: Not accessed |
8 |
status |
Integer |
Y |
Delete flag. 0: Deleted; 1: Not deleted |
9 |
key |
String |
N |
Ciphertext key |
10 |
ownerKey |
String |
N |
Owner’s key |