Package com.codeborne.selenide
Record Class BearerTokenCredentials
java.lang.Object
java.lang.Record
com.codeborne.selenide.BearerTokenCredentials
- All Implemented Interfaces:
Credentials
public record BearerTokenCredentials(String domain, String token)
extends Record
implements Credentials
-
Constructor Summary
ConstructorsConstructorDescriptionBearerTokenCredentials(String domain, String token) Creates an instance of aBearerTokenCredentialsrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondomain()Returns the value of thedomainrecord component.encode()final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.token()Returns the value of thetokenrecord component.toString()Returns a string representation of this record class.
-
Constructor Details
-
BearerTokenCredentials
Creates an instance of aBearerTokenCredentialsrecord class.- Parameters:
domain- the value for thedomainrecord componenttoken- the value for thetokenrecord component
-
-
Method Details
-
encode
- Specified by:
encodein interfaceCredentials
-
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). -
domain
Returns the value of thedomainrecord component.- Specified by:
domainin interfaceCredentials- Returns:
- the value of the
domainrecord component
-
token
Returns the value of thetokenrecord component.- Returns:
- the value of the
tokenrecord component
-