Record Class HandshakeTarget
java.lang.Object
java.lang.Record
energy.eddie.aiida.models.permission.HandshakeTarget
- Record Components:
handshakeUrl- URL of the permission request at the EDDIE framework.accessToken- Access token authorizing requests to the handshake URL.
Identifies the handshake endpoint of a permission request at the EDDIE framework, as contained in the AIIDA code.
-
Constructor Summary
ConstructorsConstructorDescriptionHandshakeTarget(String handshakeUrl, String accessToken) Creates an instance of aHandshakeTargetrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theaccessTokenrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thehandshakeUrlrecord component.final inthashCode()Returns a hash code value for this object.static HandshakeTargetof(Permission permission) static HandshakeTargetCreates the handshake target from the AIIDA code by expanding the permission ID into the handshake URL template.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
HandshakeTarget
Creates an instance of aHandshakeTargetrecord class.- Parameters:
handshakeUrl- the value for thehandshakeUrlrecord componentaccessToken- the value for theaccessTokenrecord component
-
-
Method Details
-
of
-
of
public static HandshakeTarget of(String handshakeUrlTemplate, UUID permissionId, String accessToken) Creates the handshake target from the AIIDA code by expanding the permission ID into the handshake URL template. -
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). -
handshakeUrl
Returns the value of thehandshakeUrlrecord component.- Returns:
- the value of the
handshakeUrlrecord component
-
accessToken
Returns the value of theaccessTokenrecord component.- Returns:
- the value of the
accessTokenrecord component
-