Record Class CliProperties
java.lang.Object
java.lang.Record
com.irurueta.authserver.serviceclient.CliProperties
- Record Components:
printAccessToken- whether the runner also prints the access token it used (falseby default: a token is a credential and is never printed unless asked).subjectToken- access token of the user for thetoken-exchangerunner, normally read from theSERVICE_CLIENT_SUBJECT_TOKENenvironment variable.
@ConfigurationProperties(prefix="service-client.cli")
public record CliProperties(boolean printAccessToken, String subjectToken)
extends Record
Settings of the
client-credentials and token-exchange runners (service-client.cli.*).-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final booleanThe field for theprintAccessTokenrecord component.private final StringThe field for thesubjectTokenrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionCliProperties(boolean printAccessToken, String subjectToken) Creates an instance of aCliPropertiesrecord 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.booleanReturns the value of theprintAccessTokenrecord component.Returns the value of thesubjectTokenrecord component.toString()Describes the settings without the token.
-
Field Details
-
printAccessToken
private final boolean printAccessTokenThe field for theprintAccessTokenrecord component. -
subjectToken
The field for thesubjectTokenrecord component.
-
-
Constructor Details
-
CliProperties
Creates an instance of aCliPropertiesrecord class.- Parameters:
printAccessToken- the value for theprintAccessTokenrecord componentsubjectToken- the value for thesubjectTokenrecord component
-
-
Method Details
-
toString
Describes the settings without the token. -
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 '=='. -
printAccessToken
public boolean printAccessToken()Returns the value of theprintAccessTokenrecord component.- Returns:
- the value of the
printAccessTokenrecord component
-
subjectToken
Returns the value of thesubjectTokenrecord component.- Returns:
- the value of the
subjectTokenrecord component
-