Record Class OidcPrincipal
java.lang.Object
java.lang.Record
dev.relism.flash.ext.security.oidc.OidcPrincipal
- Record Components:
provider- theOidcProvider.id()claims- verified: the access token's for a bearer caller, the ID token's for a sessionrefreshToken-nullfor a bearer caller
- All Implemented Interfaces:
dev.relism.flash.ext.security.Principal
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theaccessTokenrecord component.claims()Returns the value of theclaimsrecord component.email()final booleanIndicates whether some other object is "equal to" this one.booleanhasAudience(String audience) final inthashCode()Returns a hash code value for this object.booleanFromscope(space-delimited) orscp; a token that grants none grants none.issuer()Returns the value of thelogoutUrlrecord component.name()Returns the value of thenamerecord component.provider()Returns the value of theproviderrecord component.Returns the value of therefreshTokenrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
OidcPrincipal
public OidcPrincipal(String provider, String name, Map<String, Object> claims, String accessToken, String refreshToken, String logoutUrl) Creates an instance of aOidcPrincipalrecord class.- Parameters:
provider- the value for theproviderrecord componentname- the value for thenamerecord componentclaims- the value for theclaimsrecord componentaccessToken- the value for theaccessTokenrecord componentrefreshToken- the value for therefreshTokenrecord componentlogoutUrl- the value for thelogoutUrlrecord component
-
-
Method Details
-
issuer
-
email
-
claim
-
hasScope
Fromscope(space-delimited) orscp; a token that grants none grants none.- Specified by:
hasScopein interfacedev.relism.flash.ext.security.Principal
-
hasAudience
- Specified by:
hasAudiencein interfacedev.relism.flash.ext.security.Principal
-
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). -
provider
Returns the value of theproviderrecord component.- Returns:
- the value of the
providerrecord component
-
name
Returns the value of thenamerecord component.- Specified by:
namein interfacedev.relism.flash.ext.security.Principal- Returns:
- the value of the
namerecord component
-
claims
Returns the value of theclaimsrecord component.- Returns:
- the value of the
claimsrecord component
-
accessToken
Returns the value of theaccessTokenrecord component.- Returns:
- the value of the
accessTokenrecord component
-
refreshToken
Returns the value of therefreshTokenrecord component.- Returns:
- the value of the
refreshTokenrecord component
-
logoutUrl
Returns the value of thelogoutUrlrecord component.- Specified by:
logoutUrlin interfacedev.relism.flash.ext.security.Principal- Returns:
- the value of the
logoutUrlrecord component
-