Record Class TenantRegistry.ClientDefinition
java.lang.Object
java.lang.Record
org.chenile.security.auth.framework.contract.TenantRegistry.ClientDefinition
- Enclosing interface:
TenantRegistry
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe field for theallowedScopesrecord component.private final booleanThe field for theclientCredentialsEnabledrecord component.private final StringThe field for theclientIdrecord component.private final booleanThe field for thepasswordGrantEnabledrecord component.private final StringThe field for thesecretHashrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionClientDefinition(String clientId, String secretHash, boolean clientCredentialsEnabled, boolean passwordGrantEnabled, List<String> allowedScopes) Creates an instance of aClientDefinitionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theallowedScopesrecord component.booleanReturns the value of theclientCredentialsEnabledrecord component.clientId()Returns the value of theclientIdrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanReturns the value of thepasswordGrantEnabledrecord component.secret()Returns the value of thesecretHashrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
clientId
The field for theclientIdrecord component. -
secretHash
The field for thesecretHashrecord component. -
clientCredentialsEnabled
private final boolean clientCredentialsEnabledThe field for theclientCredentialsEnabledrecord component. -
passwordGrantEnabled
private final boolean passwordGrantEnabledThe field for thepasswordGrantEnabledrecord component. -
allowedScopes
-
-
Constructor Details
-
ClientDefinition
public ClientDefinition(String clientId, String secretHash, boolean clientCredentialsEnabled, boolean passwordGrantEnabled, List<String> allowedScopes) Creates an instance of aClientDefinitionrecord class.- Parameters:
clientId- the value for theclientIdrecord componentsecretHash- the value for thesecretHashrecord componentclientCredentialsEnabled- the value for theclientCredentialsEnabledrecord componentpasswordGrantEnabled- the value for thepasswordGrantEnabledrecord componentallowedScopes- the value for theallowedScopesrecord component
-
-
Method Details
-
secret
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
clientId
Returns the value of theclientIdrecord component.- Returns:
- the value of the
clientIdrecord component
-
secretHash
Returns the value of thesecretHashrecord component.- Returns:
- the value of the
secretHashrecord component
-
clientCredentialsEnabled
public boolean clientCredentialsEnabled()Returns the value of theclientCredentialsEnabledrecord component.- Returns:
- the value of the
clientCredentialsEnabledrecord component
-
passwordGrantEnabled
public boolean passwordGrantEnabled()Returns the value of thepasswordGrantEnabledrecord component.- Returns:
- the value of the
passwordGrantEnabledrecord component
-
allowedScopes
-
CHENILE