Record Class AuthenticationResult
java.lang.Object
java.lang.Record
org.alfresco.hxi_connector.common.adapters.auth.AuthenticationResult
-
Constructor Summary
ConstructorsConstructorDescriptionAuthenticationResult(@NotBlank String accessToken, @jakarta.validation.constraints.Positive int expiresIn, TemporalUnit temporalUnit, @NotBlank String tokenType, @NotBlank String scope, Integer statusCode) Creates an instance of aAuthenticationResultrecord class. -
Method Summary
Modifier and TypeMethodDescription@NotBlank StringReturns the value of theaccessTokenrecord component.final booleanIndicates whether some other object is "equal to" this one.@jakarta.validation.constraints.Positive intReturns the value of theexpiresInrecord component.final inthashCode()Returns a hash code value for this object.@NotBlank Stringscope()Returns the value of thescoperecord component.Returns the value of thestatusCoderecord component.Returns the value of thetemporalUnitrecord component.@NotBlank StringReturns the value of thetokenTyperecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
AuthenticationResult
public AuthenticationResult(@NotBlank @NotBlank String accessToken, @Positive @jakarta.validation.constraints.Positive int expiresIn, TemporalUnit temporalUnit, @NotBlank @NotBlank String tokenType, @NotBlank @NotBlank String scope, Integer statusCode) Creates an instance of aAuthenticationResultrecord class.- Parameters:
accessToken- the value for theaccessTokenrecord componentexpiresIn- the value for theexpiresInrecord componenttemporalUnit- the value for thetemporalUnitrecord componenttokenType- the value for thetokenTyperecord componentscope- the value for thescoperecord componentstatusCode- the value for thestatusCoderecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
accessToken
Returns the value of theaccessTokenrecord component.- Returns:
- the value of the
accessTokenrecord component
-
expiresIn
@Positive public @jakarta.validation.constraints.Positive int expiresIn()Returns the value of theexpiresInrecord component.- Returns:
- the value of the
expiresInrecord component
-
temporalUnit
Returns the value of thetemporalUnitrecord component.- Returns:
- the value of the
temporalUnitrecord component
-
tokenType
Returns the value of thetokenTyperecord component.- Returns:
- the value of the
tokenTyperecord component
-
scope
Returns the value of thescoperecord component.- Returns:
- the value of the
scoperecord component
-
statusCode
Returns the value of thestatusCoderecord component.- Returns:
- the value of the
statusCoderecord component
-