Package land.oras.auth
Record Class AuthStore.CredentialHelperResponse
java.lang.Object
java.lang.Record
land.oras.auth.AuthStore.CredentialHelperResponse
- Record Components:
serverUrl- The server URLusername- The usernamesecret- The secret (password or token)
- Enclosing class:
- AuthStore
public static record AuthStore.CredentialHelperResponse(String serverUrl, String username, String secret)
extends Record
Credential helper response
-
Constructor Summary
ConstructorsConstructorDescriptionCredentialHelperResponse(String serverUrl, String username, String secret) Creates an instance of aCredentialHelperResponserecord class. -
Method Summary
Modifier and TypeMethodDescriptionConvert to Credentialfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.secret()Returns the value of thesecretrecord component.Returns the value of theserverUrlrecord component.final StringtoString()Returns a string representation of this record class.username()Returns the value of theusernamerecord component.
-
Constructor Details
-
Method Details
-
asCredential
Convert to Credential- Returns:
- Credential
-
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). -
serverUrl
Returns the value of theserverUrlrecord component.- Returns:
- the value of the
serverUrlrecord component
-
username
Returns the value of theusernamerecord component.- Returns:
- the value of the
usernamerecord component
-
secret
Returns the value of thesecretrecord component.- Returns:
- the value of the
secretrecord component
-