Record Class FileCredentialRotation.ResourceEndpoint
java.lang.Object
java.lang.Record
ecmwf.common.ectrans.FileCredentialRotation.ResourceEndpoint
- All Implemented Interfaces:
CredentialProbe.Endpoint, PasswordRotation.Endpoint
- Enclosing class:
FileCredentialRotation<M extends TransferModule>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Stable, protocol-specific fingerprint of the approved endpoint, excluding credentials.final inthashCode()Returns a hash code value for this object.host()Returns the value of thehostrecord component.login()Returns the value of theloginrecord component.booleanmatchesOrigin(String scheme, String actualHost, int actualPort) options()Returns the value of theoptionsrecord component.origin()intport()Returns the value of theportrecord component.Returns the value of theprobeDirectoryrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ResourceEndpoint
public ResourceEndpoint(String host, int port, String login, String probeDirectory, Map<String, String> options) Creates an instance of aResourceEndpointrecord class.- Parameters:
host- the value for thehostrecord componentport- the value for theportrecord componentlogin- the value for theloginrecord componentprobeDirectory- the value for theprobeDirectoryrecord componentoptions- the value for theoptionsrecord component
-
-
Method Details
-
option
-
origin
-
matchesOrigin
-
fingerprint
Description copied from interface:CredentialProbe.EndpointStable, protocol-specific fingerprint of the approved endpoint, excluding credentials.- Specified by:
fingerprintin interfaceCredentialProbe.Endpoint
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
host
Returns the value of thehostrecord component.- Specified by:
hostin interfacePasswordRotation.Endpoint- Returns:
- the value of the
hostrecord component
-
port
public int port()Returns the value of theportrecord component.- Specified by:
portin interfacePasswordRotation.Endpoint- Returns:
- the value of the
portrecord component
-
login
Returns the value of theloginrecord component.- Specified by:
loginin interfacePasswordRotation.Endpoint- Returns:
- the value of the
loginrecord component
-
probeDirectory
Returns the value of theprobeDirectoryrecord component.- Returns:
- the value of the
probeDirectoryrecord component
-
options
-