Class FileCredentialRotation<M extends TransferModule>
java.lang.Object
ecmwf.common.ectrans.FileCredentialRotation<M>
- All Implemented Interfaces:
CredentialProbe<PasswordRotation.Endpoint, String>, PasswordRotation
public abstract class FileCredentialRotation<M extends TransferModule>
extends Object
implements PasswordRotation
Common bounded write/cleanup probe for modules with an isolated, encrypted credential connection.
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface CredentialProbe
CredentialProbe.ResultNested classes/interfaces inherited from interface PasswordRotation
PasswordRotation.Approved, PasswordRotation.Endpoint -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal voidconnect(TransferModule module, PasswordRotation.Endpoint endpoint, String directory, ECtransSetup ignored, String credential) Connects this module to the approved endpoint without using its legacy credentials or a reusable cookie.protected abstract voidconnect(M module, FileCredentialRotation.ResourceEndpoint endpoint, String directory, String credential) protected static com.fasterxml.jackson.databind.JsonNodeparseEndpoint(String configuration) final CredentialProbe.Resultprobe(PasswordRotation.Endpoint endpoint, String credential) Tests an operator-approved endpoint without modifying the module's live transfer state.protected final ECtransSetupsetup()final StringsnapshotHostData(String hostData) A configuration binding safe to include in relay metadata; implementations must omit embedded credentials.protected static SSLSocketFactorystrictTlsFactory(String approvedHost) final booleanChecks the exact method and Host options without connecting or performing external I/O.protected static Stringprotected void
-
Field Details
-
STANDARD_METHOD
- See Also:
-
-
Constructor Details
-
FileCredentialRotation
-
-
Method Details
-
parseEndpoint
- Specified by:
parseEndpointin interfaceCredentialProbe<PasswordRotation.Endpoint, String>
-
validate
-
snapshotHostData
Description copied from interface:PasswordRotationA configuration binding safe to include in relay metadata; implementations must omit embedded credentials.- Specified by:
snapshotHostDatain interfacePasswordRotation
-
supports
Description copied from interface:PasswordRotationChecks the exact method and Host options without connecting or performing external I/O.- Specified by:
supportsin interfacePasswordRotation
-
connect
public final void connect(TransferModule module, PasswordRotation.Endpoint endpoint, String directory, ECtransSetup ignored, String credential) throws IOException Description copied from interface:PasswordRotationConnects this module to the approved endpoint without using its legacy credentials or a reusable cookie.- Specified by:
connectin interfacePasswordRotation- Throws:
IOException
-
connect
-
probe
Description copied from interface:CredentialProbeTests an operator-approved endpoint without modifying the module's live transfer state.- Specified by:
probein interfaceCredentialProbe<PasswordRotation.Endpoint, String>
-
setup
-
object
protected static com.fasterxml.jackson.databind.JsonNode object(String credential) throws IOException - Throws:
IOException
-
text
protected static String text(com.fasterxml.jackson.databind.JsonNode object, String name) throws IOException - Throws:
IOException
-
strictTlsFactory
-