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
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedOidcPrincipalAuthInfo(Long getPrincipalId, String getPrincipalName, Set<String> getPrincipalRoles) Creates an instance of aOidcPrincipalAuthInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of thegetPrincipalIdrecord component.Returns the value of thegetPrincipalNamerecord component.Returns the value of thegetPrincipalRolesrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
OidcPrincipalAuthInfo
protected OidcPrincipalAuthInfo(@Nullable Long getPrincipalId, @Nullable String getPrincipalName, Set<String> getPrincipalRoles) Creates an instance of aOidcPrincipalAuthInforecord class.- Parameters:
getPrincipalId- the value for thegetPrincipalIdrecord componentgetPrincipalName- the value for thegetPrincipalNamerecord componentgetPrincipalRoles- the value for thegetPrincipalRolesrecord component
-
-
Method Details
-
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. -
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. -
equals
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 withObjects::equals(Object,Object). -
getPrincipalId
Returns the value of thegetPrincipalIdrecord component.- Specified by:
getPrincipalIdin interfaceorg.apache.polaris.service.auth.PrincipalAuthInfo- Returns:
- the value of the
getPrincipalIdrecord component
-
getPrincipalName
Returns the value of thegetPrincipalNamerecord component.- Specified by:
getPrincipalNamein interfaceorg.apache.polaris.service.auth.PrincipalAuthInfo- Returns:
- the value of the
getPrincipalNamerecord component
-
getPrincipalRoles
Returns the value of thegetPrincipalRolesrecord component.- Specified by:
getPrincipalRolesin interfaceorg.apache.polaris.service.auth.PrincipalAuthInfo- Returns:
- the value of the
getPrincipalRolesrecord component
-