Record Class OidcProvider
java.lang.Object
java.lang.Record
dev.relism.flash.ext.security.oidc.OidcProvider
- Record Components:
id- names the provider in routes (/auth/oidc/{id}/login), OpenAPI and principalsname- what a sign-in page showsissuer- exactly as the provider publishes it — some end in/scopes- requested at sign-in, space-delimited
public record OidcProvider(String id, String name, String issuer, String clientId, String clientSecret, String scopes)
extends Record
An OpenID Provider the application trusts, and the client the application is registered as there.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclientId()Returns the value of theclientIdrecord component.Returns the value of theclientSecretrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.issuer()Returns the value of theissuerrecord component.name()Returns the value of thenamerecord component.static OidcProviderscopes()Returns the value of thescopesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
OidcProvider
public OidcProvider(String id, String name, String issuer, String clientId, String clientSecret, String scopes) Creates an instance of aOidcProviderrecord class.- Parameters:
id- the value for theidrecord componentname- the value for thenamerecord componentissuer- the value for theissuerrecord componentclientId- the value for theclientIdrecord componentclientSecret- the value for theclientSecretrecord componentscopes- the value for thescopesrecord component
-
-
Method Details
-
of
-
name
-
scopes
-
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). -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
issuer
Returns the value of theissuerrecord component.- Returns:
- the value of the
issuerrecord component
-
clientId
Returns the value of theclientIdrecord component.- Returns:
- the value of the
clientIdrecord component
-
clientSecret
Returns the value of theclientSecretrecord component.- Returns:
- the value of the
clientSecretrecord component
-
scopes
Returns the value of thescopesrecord component.- Returns:
- the value of the
scopesrecord component
-