Package com.onec.auth
Record Class OnecAuthProperties.ResolvedOidc
java.lang.Object
java.lang.Record
com.onec.auth.OnecAuthProperties.ResolvedOidc
- Enclosing class:
OnecAuthProperties
public static record OnecAuthProperties.ResolvedOidc(String registrationId, String principalClaim, String logoutPath, String postLogoutRedirectUri, String rolePrefix, List<OnecAuthProperties.RoleSource> roleSources)
extends Record
Effective OIDC settings after the
OnecAuthProperties.Provider preset has been applied. Consumed by the
autoconfig (registration id / principal / logout) and ClaimRoleConverter (sources /
prefix).-
Constructor Summary
ConstructorsConstructorDescriptionResolvedOidc(String registrationId, String principalClaim, String logoutPath, String postLogoutRedirectUri, String rolePrefix, List<OnecAuthProperties.RoleSource> roleSources) Creates an instance of aResolvedOidcrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thelogoutPathrecord component.Returns the value of thepostLogoutRedirectUrirecord component.Returns the value of theprincipalClaimrecord component.Returns the value of theregistrationIdrecord component.Returns the value of therolePrefixrecord component.Returns the value of theroleSourcesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ResolvedOidc
public ResolvedOidc(String registrationId, String principalClaim, String logoutPath, String postLogoutRedirectUri, String rolePrefix, List<OnecAuthProperties.RoleSource> roleSources) Creates an instance of aResolvedOidcrecord class.- Parameters:
registrationId- the value for theregistrationIdrecord componentprincipalClaim- the value for theprincipalClaimrecord componentlogoutPath- the value for thelogoutPathrecord componentpostLogoutRedirectUri- the value for thepostLogoutRedirectUrirecord componentrolePrefix- the value for therolePrefixrecord componentroleSources- the value for theroleSourcesrecord 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). -
registrationId
Returns the value of theregistrationIdrecord component.- Returns:
- the value of the
registrationIdrecord component
-
principalClaim
Returns the value of theprincipalClaimrecord component.- Returns:
- the value of the
principalClaimrecord component
-
logoutPath
Returns the value of thelogoutPathrecord component.- Returns:
- the value of the
logoutPathrecord component
-
postLogoutRedirectUri
Returns the value of thepostLogoutRedirectUrirecord component.- Returns:
- the value of the
postLogoutRedirectUrirecord component
-
rolePrefix
Returns the value of therolePrefixrecord component.- Returns:
- the value of the
rolePrefixrecord component
-
roleSources
Returns the value of theroleSourcesrecord component.- Returns:
- the value of the
roleSourcesrecord component
-