Record Class JSftpModule.PasswordProbeEndpoint
java.lang.Object
java.lang.Record
ecmwf.common.ectrans.module.JSftpModule.PasswordProbeEndpoint
- All Implemented Interfaces:
CredentialProbe.Endpoint, PasswordRotation.Endpoint
- Enclosing class:
JSftpModule
-
Constructor Summary
ConstructorsConstructorDescriptionPasswordProbeEndpoint(String host, int port, String login, String pin, String directory) Creates an instance of aPasswordProbeEndpointrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedirectoryrecord component.final 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.pin()Returns the value of thepinrecord component.intport()Returns the value of theportrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PasswordProbeEndpoint
Creates an instance of aPasswordProbeEndpointrecord class.- Parameters:
host- the value for thehostrecord componentport- the value for theportrecord componentlogin- the value for theloginrecord componentpin- the value for thepinrecord componentdirectory- the value for thedirectoryrecord component
-
-
Method Details
-
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
-
pin
Returns the value of thepinrecord component.- Returns:
- the value of the
pinrecord component
-
directory
Returns the value of thedirectoryrecord component.- Returns:
- the value of the
directoryrecord component
-