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 claim
 
Protobuf type io.github.xezzon.zeroweb.auth.JwtClaim
See Also:
  • Field Details

  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • getSubject

      public String getSubject()
       用户ID
       
      string subject = 1;
      Specified by:
      getSubject in interface JwtClaimOrBuilder
      Returns:
      The subject.
    • getSubjectBytes

      public com.google.protobuf.ByteString getSubjectBytes()
       用户ID
       
      string subject = 1;
      Specified by:
      getSubjectBytes in interface JwtClaimOrBuilder
      Returns:
      The bytes for subject.
    • getPreferredUsername

      public String getPreferredUsername()
       用户名
       
      string preferred_username = 2;
      Specified by:
      getPreferredUsername in interface JwtClaimOrBuilder
      Returns:
      The preferredUsername.
    • getPreferredUsernameBytes

      public com.google.protobuf.ByteString getPreferredUsernameBytes()
       用户名
       
      string preferred_username = 2;
      Specified by:
      getPreferredUsernameBytes in interface JwtClaimOrBuilder
      Returns:
      The bytes for preferredUsername.
    • getNickname

      public String getNickname()
       昵称
       
      string nickname = 3;
      Specified by:
      getNickname in interface JwtClaimOrBuilder
      Returns:
      The nickname.
    • getNicknameBytes

      public com.google.protobuf.ByteString getNicknameBytes()
       昵称
       
      string nickname = 3;
      Specified by:
      getNicknameBytes in interface JwtClaimOrBuilder
      Returns:
      The bytes for nickname.
    • getRolesList

      public com.google.protobuf.ProtocolStringList getRolesList()
       角色
       
      repeated string roles = 4;
      Specified by:
      getRolesList in interface JwtClaimOrBuilder
      Returns:
      A list containing the roles.
    • getRolesCount

      public int getRolesCount()
       角色
       
      repeated string roles = 4;
      Specified by:
      getRolesCount in interface JwtClaimOrBuilder
      Returns:
      The count of roles.
    • getRoles

      public String getRoles(int index)
       角色
       
      repeated string roles = 4;
      Specified by:
      getRoles in interface JwtClaimOrBuilder
      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 interface JwtClaimOrBuilder
      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 interface JwtClaimOrBuilder
      Returns:
      A list containing the entitlements.
    • getEntitlementsCount

      public int getEntitlementsCount()
       权限
       
      repeated string entitlements = 5;
      Specified by:
      getEntitlementsCount in interface JwtClaimOrBuilder
      Returns:
      The count of entitlements.
    • getEntitlements

      public String getEntitlements(int index)
       权限
       
      repeated string entitlements = 5;
      Specified by:
      getEntitlements in interface JwtClaimOrBuilder
      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 interface JwtClaimOrBuilder
      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 interface JwtClaimOrBuilder
      Returns:
      A list containing the groups.
    • getGroupsCount

      public int getGroupsCount()
       用户组
       
      repeated string groups = 6;
      Specified by:
      getGroupsCount in interface JwtClaimOrBuilder
      Returns:
      The count of groups.
    • getGroups

      public String getGroups(int index)
       用户组
       
      repeated string groups = 6;
      Specified by:
      getGroups in interface JwtClaimOrBuilder
      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 interface JwtClaimOrBuilder
      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 interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.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

      public static JwtClaim parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static JwtClaim parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static JwtClaim parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static JwtClaim parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static JwtClaim parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static JwtClaim parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public JwtClaim.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static JwtClaim.Builder newBuilder()
    • newBuilder

      public static JwtClaim.Builder newBuilder(JwtClaim prototype)
    • toBuilder

      public JwtClaim.Builder toBuilder()
      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • getDefaultInstance

      public static JwtClaim getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<JwtClaim> parser()
    • getParserForType

      public com.google.protobuf.Parser<JwtClaim> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public JwtClaim getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder