Record Class Authorization
java.lang.Object
java.lang.Record
org.alfresco.hxi_connector.common.adapters.auth.config.properties.Authorization
-
Constructor Summary
ConstructorsConstructorDescriptionAuthorization(@NotBlank String applicationName, @NotBlank String serviceUser, @NotBlank String environmentKey) Creates an instance of aAuthorizationrecord class. -
Method Summary
Modifier and TypeMethodDescription@NotBlank StringReturns the value of theapplicationNamerecord component.@NotBlank StringReturns the value of theenvironmentKeyrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@NotBlank StringReturns the value of theserviceUserrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Authorization
public Authorization(@NotBlank @NotBlank String applicationName, @NotBlank @NotBlank String serviceUser, @NotBlank @NotBlank String environmentKey) Creates an instance of aAuthorizationrecord class.- Parameters:
applicationName- the value for theapplicationNamerecord componentserviceUser- the value for theserviceUserrecord componentenvironmentKey- the value for theenvironmentKeyrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
applicationName
Returns the value of theapplicationNamerecord component.- Returns:
- the value of the
applicationNamerecord component
-
serviceUser
Returns the value of theserviceUserrecord component.- Returns:
- the value of the
serviceUserrecord component
-
environmentKey
Returns the value of theenvironmentKeyrecord component.- Returns:
- the value of the
environmentKeyrecord component
-