Record Class PrincipalAuthInfoAugmentor.OidcPrincipalAuthInfo

java.lang.Object
java.lang.Record
org.apache.polaris.service.quarkus.auth.external.PrincipalAuthInfoAugmentor.OidcPrincipalAuthInfo
All Implemented Interfaces:
io.quarkus.security.credential.Credential, org.apache.polaris.service.auth.PrincipalAuthInfo, QuarkusPrincipalAuthInfo
Enclosing class:
PrincipalAuthInfoAugmentor

protected static record PrincipalAuthInfoAugmentor.OidcPrincipalAuthInfo(@Nullable Long getPrincipalId, @Nullable String getPrincipalName, Set<String> getPrincipalRoles) extends Record implements QuarkusPrincipalAuthInfo
  • Constructor Details

    • OidcPrincipalAuthInfo

      protected OidcPrincipalAuthInfo(@Nullable Long getPrincipalId, @Nullable String getPrincipalName, Set<String> getPrincipalRoles)
      Creates an instance of a OidcPrincipalAuthInfo record class.
      Parameters:
      getPrincipalId - the value for the getPrincipalId record component
      getPrincipalName - the value for the getPrincipalName record component
      getPrincipalRoles - the value for the getPrincipalRoles record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • getPrincipalId

      @Nullable public Long getPrincipalId()
      Returns the value of the getPrincipalId record component.
      Specified by:
      getPrincipalId in interface org.apache.polaris.service.auth.PrincipalAuthInfo
      Returns:
      the value of the getPrincipalId record component
    • getPrincipalName

      @Nullable public String getPrincipalName()
      Returns the value of the getPrincipalName record component.
      Specified by:
      getPrincipalName in interface org.apache.polaris.service.auth.PrincipalAuthInfo
      Returns:
      the value of the getPrincipalName record component
    • getPrincipalRoles

      public Set<String> getPrincipalRoles()
      Returns the value of the getPrincipalRoles record component.
      Specified by:
      getPrincipalRoles in interface org.apache.polaris.service.auth.PrincipalAuthInfo
      Returns:
      the value of the getPrincipalRoles record component