Package io.github.xezzon.zeroweb.auth
Interface JwtClaimOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
JwtClaim
,JwtClaim.Builder
public interface JwtClaimOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptiongetEntitlements
(int index) 权限com.google.protobuf.ByteString
getEntitlementsBytes
(int index) 权限int
权限权限getGroups
(int index) 用户组com.google.protobuf.ByteString
getGroupsBytes
(int index) 用户组int
用户组用户组昵称com.google.protobuf.ByteString
昵称用户名com.google.protobuf.ByteString
用户名getRoles
(int index) 角色com.google.protobuf.ByteString
getRolesBytes
(int index) 角色int
角色角色用户IDcom.google.protobuf.ByteString
用户IDMethods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getSubject
String getSubject()用户ID
string subject = 1;
- Returns:
- The subject.
-
getSubjectBytes
com.google.protobuf.ByteString getSubjectBytes()用户ID
string subject = 1;
- Returns:
- The bytes for subject.
-
getPreferredUsername
String getPreferredUsername()用户名
string preferred_username = 2;
- Returns:
- The preferredUsername.
-
getPreferredUsernameBytes
com.google.protobuf.ByteString getPreferredUsernameBytes()用户名
string preferred_username = 2;
- Returns:
- The bytes for preferredUsername.
-
getNickname
String getNickname()昵称
string nickname = 3;
- Returns:
- The nickname.
-
getNicknameBytes
com.google.protobuf.ByteString getNicknameBytes()昵称
string nickname = 3;
- Returns:
- The bytes for nickname.
-
getRolesList
角色
repeated string roles = 4;
- Returns:
- A list containing the roles.
-
getRolesCount
int getRolesCount()角色
repeated string roles = 4;
- Returns:
- The count of roles.
-
getRoles
角色
repeated string roles = 4;
- Parameters:
index
- The index of the element to return.- Returns:
- The roles at the given index.
-
getRolesBytes
com.google.protobuf.ByteString getRolesBytes(int index) 角色
repeated string roles = 4;
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the roles at the given index.
-
getEntitlementsList
权限
repeated string entitlements = 5;
- Returns:
- A list containing the entitlements.
-
getEntitlementsCount
int getEntitlementsCount()权限
repeated string entitlements = 5;
- Returns:
- The count of entitlements.
-
getEntitlements
权限
repeated string entitlements = 5;
- Parameters:
index
- The index of the element to return.- Returns:
- The entitlements at the given index.
-
getEntitlementsBytes
com.google.protobuf.ByteString getEntitlementsBytes(int index) 权限
repeated string entitlements = 5;
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the entitlements at the given index.
-
getGroupsList
用户组
repeated string groups = 6;
- Returns:
- A list containing the groups.
-
getGroupsCount
int getGroupsCount()用户组
repeated string groups = 6;
- Returns:
- The count of groups.
-
getGroups
用户组
repeated string groups = 6;
- Parameters:
index
- The index of the element to return.- Returns:
- The groups at the given index.
-
getGroupsBytes
com.google.protobuf.ByteString getGroupsBytes(int index) 用户组
repeated string groups = 6;
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the groups at the given index.
-