Package io.github.xezzon.zeroweb.auth
Class JwtClaim
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
io.github.xezzon.zeroweb.auth.JwtClaim
- All Implemented Interfaces:
com.google.protobuf.Message
,com.google.protobuf.MessageLite
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,JwtClaimOrBuilder
,Serializable
public final class JwtClaim
extends com.google.protobuf.GeneratedMessage
implements JwtClaimOrBuilder
JWT claimProtobuf type
io.github.xezzon.zeroweb.auth.JwtClaim
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,
BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
static final int
static final int
-
Method Summary
Modifier and TypeMethodDescriptionboolean
static JwtClaim
static final com.google.protobuf.Descriptors.Descriptor
getEntitlements
(int index) 权限com.google.protobuf.ByteString
getEntitlementsBytes
(int index) 权限int
权限com.google.protobuf.ProtocolStringList
权限getGroups
(int index) 用户组com.google.protobuf.ByteString
getGroupsBytes
(int index) 用户组int
用户组com.google.protobuf.ProtocolStringList
用户组昵称com.google.protobuf.ByteString
昵称com.google.protobuf.Parser<JwtClaim>
用户名com.google.protobuf.ByteString
用户名getRoles
(int index) 角色com.google.protobuf.ByteString
getRolesBytes
(int index) 角色int
角色com.google.protobuf.ProtocolStringList
角色int
用户IDcom.google.protobuf.ByteString
用户IDint
hashCode()
final boolean
static JwtClaim.Builder
static JwtClaim.Builder
newBuilder
(JwtClaim prototype) static JwtClaim
parseDelimitedFrom
(InputStream input) static JwtClaim
parseDelimitedFrom
(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static JwtClaim
parseFrom
(byte[] data) static JwtClaim
parseFrom
(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static JwtClaim
parseFrom
(com.google.protobuf.ByteString data) static JwtClaim
parseFrom
(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static JwtClaim
parseFrom
(com.google.protobuf.CodedInputStream input) static JwtClaim
parseFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static JwtClaim
parseFrom
(InputStream input) static JwtClaim
parseFrom
(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static JwtClaim
parseFrom
(ByteBuffer data) static JwtClaim
parseFrom
(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<JwtClaim>
parser()
void
writeTo
(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, newFileScopedGeneratedExtension, newMessageScopedGeneratedExtension
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, toString
Methods inherited from class com.google.protobuf.AbstractMessageLite
toByteArray, toByteString, writeDelimitedTo, writeTo
Methods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeTo
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
SUBJECT_FIELD_NUMBER
public static final int SUBJECT_FIELD_NUMBER- See Also:
-
PREFERRED_USERNAME_FIELD_NUMBER
public static final int PREFERRED_USERNAME_FIELD_NUMBER- See Also:
-
NICKNAME_FIELD_NUMBER
public static final int NICKNAME_FIELD_NUMBER- See Also:
-
ROLES_FIELD_NUMBER
public static final int ROLES_FIELD_NUMBER- See Also:
-
ENTITLEMENTS_FIELD_NUMBER
public static final int ENTITLEMENTS_FIELD_NUMBER- See Also:
-
GROUPS_FIELD_NUMBER
public static final int GROUPS_FIELD_NUMBER- See Also:
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
getSubject
用户ID
string subject = 1;
- Specified by:
getSubject
in interfaceJwtClaimOrBuilder
- Returns:
- The subject.
-
getSubjectBytes
public com.google.protobuf.ByteString getSubjectBytes()用户ID
string subject = 1;
- Specified by:
getSubjectBytes
in interfaceJwtClaimOrBuilder
- Returns:
- The bytes for subject.
-
getPreferredUsername
用户名
string preferred_username = 2;
- Specified by:
getPreferredUsername
in interfaceJwtClaimOrBuilder
- Returns:
- The preferredUsername.
-
getPreferredUsernameBytes
public com.google.protobuf.ByteString getPreferredUsernameBytes()用户名
string preferred_username = 2;
- Specified by:
getPreferredUsernameBytes
in interfaceJwtClaimOrBuilder
- Returns:
- The bytes for preferredUsername.
-
getNickname
昵称
string nickname = 3;
- Specified by:
getNickname
in interfaceJwtClaimOrBuilder
- Returns:
- The nickname.
-
getNicknameBytes
public com.google.protobuf.ByteString getNicknameBytes()昵称
string nickname = 3;
- Specified by:
getNicknameBytes
in interfaceJwtClaimOrBuilder
- Returns:
- The bytes for nickname.
-
getRolesList
public com.google.protobuf.ProtocolStringList getRolesList()角色
repeated string roles = 4;
- Specified by:
getRolesList
in interfaceJwtClaimOrBuilder
- Returns:
- A list containing the roles.
-
getRolesCount
public int getRolesCount()角色
repeated string roles = 4;
- Specified by:
getRolesCount
in interfaceJwtClaimOrBuilder
- Returns:
- The count of roles.
-
getRoles
角色
repeated string roles = 4;
- Specified by:
getRoles
in interfaceJwtClaimOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The roles at the given index.
-
getRolesBytes
public com.google.protobuf.ByteString getRolesBytes(int index) 角色
repeated string roles = 4;
- Specified by:
getRolesBytes
in interfaceJwtClaimOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the roles at the given index.
-
getEntitlementsList
public com.google.protobuf.ProtocolStringList getEntitlementsList()权限
repeated string entitlements = 5;
- Specified by:
getEntitlementsList
in interfaceJwtClaimOrBuilder
- Returns:
- A list containing the entitlements.
-
getEntitlementsCount
public int getEntitlementsCount()权限
repeated string entitlements = 5;
- Specified by:
getEntitlementsCount
in interfaceJwtClaimOrBuilder
- Returns:
- The count of entitlements.
-
getEntitlements
权限
repeated string entitlements = 5;
- Specified by:
getEntitlements
in interfaceJwtClaimOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The entitlements at the given index.
-
getEntitlementsBytes
public com.google.protobuf.ByteString getEntitlementsBytes(int index) 权限
repeated string entitlements = 5;
- Specified by:
getEntitlementsBytes
in interfaceJwtClaimOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the entitlements at the given index.
-
getGroupsList
public com.google.protobuf.ProtocolStringList getGroupsList()用户组
repeated string groups = 6;
- Specified by:
getGroupsList
in interfaceJwtClaimOrBuilder
- Returns:
- A list containing the groups.
-
getGroupsCount
public int getGroupsCount()用户组
repeated string groups = 6;
- Specified by:
getGroupsCount
in interfaceJwtClaimOrBuilder
- Returns:
- The count of groups.
-
getGroups
用户组
repeated string groups = 6;
- Specified by:
getGroups
in interfaceJwtClaimOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The groups at the given index.
-
getGroupsBytes
public com.google.protobuf.ByteString getGroupsBytes(int index) 用户组
repeated string groups = 6;
- Specified by:
getGroupsBytes
in interfaceJwtClaimOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the groups at the given index.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeTo
in interfacecom.google.protobuf.MessageLite
- Overrides:
writeTo
in classcom.google.protobuf.GeneratedMessage
- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equals
in interfacecom.google.protobuf.Message
- Overrides:
equals
in classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCode
in interfacecom.google.protobuf.Message
- Overrides:
hashCode
in classcom.google.protobuf.AbstractMessage
-
parseFrom
public static JwtClaim parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static JwtClaim parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static JwtClaim parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static JwtClaim parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static JwtClaim parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static JwtClaim parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static JwtClaim parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static JwtClaim parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static JwtClaim parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForType
in interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-