Record Class DirectusConnectionConfig
java.lang.Object
java.lang.Record
ch.iterial.keycloak.plugins.directus.DirectusConnectionConfig
public record DirectusConnectionConfig(String url, String token, String realm, DirectusConnectionConfig.RoleConfig[] roles, String provider, long ttl, DirectusConnectionConfig.SyncConfig sync, boolean valid)
extends Record
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic final recordstatic final record -
Constructor Summary
ConstructorsConstructorDescriptionDirectusConnectionConfig(String url, String token, String realm, DirectusConnectionConfig.RoleConfig[] roles, String provider, long ttl, DirectusConnectionConfig.SyncConfig sync, boolean valid) Creates an instance of aDirectusConnectionConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.static DirectusConnectionConfigfromScope(org.keycloak.Config.Scope scope) final inthashCode()Returns a hash code value for this object.provider()Returns the value of theproviderrecord component.realm()Returns the value of therealmrecord component.roles()Returns the value of therolesrecord component.sync()Returns the value of thesyncrecord component.token()Returns the value of thetokenrecord component.toString()Returns a string representation of this record class.longttl()Returns the value of thettlrecord component.url()Returns the value of theurlrecord component.booleanvalid()Returns the value of thevalidrecord component.
-
Constructor Details
-
DirectusConnectionConfig
public DirectusConnectionConfig(String url, String token, String realm, DirectusConnectionConfig.RoleConfig[] roles, String provider, long ttl, DirectusConnectionConfig.SyncConfig sync, boolean valid) Creates an instance of aDirectusConnectionConfigrecord class.- Parameters:
url- the value for theurlrecord componenttoken- the value for thetokenrecord componentrealm- the value for therealmrecord componentroles- the value for therolesrecord componentprovider- the value for theproviderrecord componentttl- the value for thettlrecord componentsync- the value for thesyncrecord componentvalid- the value for thevalidrecord 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. -
fromScope
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
url
Returns the value of theurlrecord component.- Returns:
- the value of the
urlrecord component
-
token
Returns the value of thetokenrecord component.- Returns:
- the value of the
tokenrecord component
-
realm
Returns the value of therealmrecord component.- Returns:
- the value of the
realmrecord component
-
roles
Returns the value of therolesrecord component.- Returns:
- the value of the
rolesrecord component
-
provider
Returns the value of theproviderrecord component.- Returns:
- the value of the
providerrecord component
-
ttl
public long ttl()Returns the value of thettlrecord component.- Returns:
- the value of the
ttlrecord component
-
sync
Returns the value of thesyncrecord component.- Returns:
- the value of the
syncrecord component
-
valid
public boolean valid()Returns the value of thevalidrecord component.- Returns:
- the value of the
validrecord component
-