Record Class PasswordRotation.Approved
java.lang.Object
java.lang.Record
ecmwf.common.ectrans.PasswordRotation.Approved
- All Implemented Interfaces:
CredentialProbe.Endpoint, PasswordRotation.Endpoint
- Enclosing interface:
PasswordRotation
public static record PasswordRotation.Approved(String moduleClass, String archive, PasswordRotation capability, PasswordRotation.Endpoint endpoint)
extends Record
implements PasswordRotation.Endpoint
-
Constructor Summary
ConstructorsConstructorDescriptionApproved(String moduleClass, String archive, PasswordRotation capability, PasswordRotation.Endpoint endpoint) Creates an instance of aApprovedrecord class. -
Method Summary
Modifier and TypeMethodDescriptionarchive()Returns the value of thearchiverecord component.Returns the value of thecapabilityrecord component.endpoint()Returns the value of theendpointrecord 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()login()booleanReturns the value of themoduleClassrecord component.intport()final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Approved
public Approved(String moduleClass, String archive, PasswordRotation capability, PasswordRotation.Endpoint endpoint) Creates an instance of aApprovedrecord class.- Parameters:
moduleClass- the value for themoduleClassrecord componentarchive- the value for thearchiverecord componentcapability- the value for thecapabilityrecord componentendpoint- the value for theendpointrecord component
-
-
Method Details
-
host
- Specified by:
hostin interfacePasswordRotation.Endpoint
-
port
public int port()- Specified by:
portin interfacePasswordRotation.Endpoint
-
login
- Specified by:
loginin interfacePasswordRotation.Endpoint
-
fingerprint
Description copied from interface:CredentialProbe.EndpointStable, protocol-specific fingerprint of the approved endpoint, excluding credentials.- Specified by:
fingerprintin interfaceCredentialProbe.Endpoint
-
matches
-
probe
- Throws:
IOException
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
moduleClass
Returns the value of themoduleClassrecord component.- Returns:
- the value of the
moduleClassrecord component
-
archive
Returns the value of thearchiverecord component.- Returns:
- the value of the
archiverecord component
-
capability
Returns the value of thecapabilityrecord component.- Returns:
- the value of the
capabilityrecord component
-
endpoint
Returns the value of theendpointrecord component.- Returns:
- the value of the
endpointrecord component
-