Something like JobManager(..., Map<String,String> additionalParameters).
Strict handling of wrong parameter (map keys) to catch typos.
If this is only about authentication only, better explicitly code this as AuthCredetials classes (Username + PWD, Username + Key, Username [e.g. if SSHAgent], Null [if ExecutionService is already connected).
Something like
JobManager(..., Map<String,String> additionalParameters)
. Strict handling of wrong parameter (map keys) to catch typos.If this is only about authentication only, better explicitly code this as AuthCredetials classes (Username + PWD, Username + Key, Username [e.g. if SSHAgent], Null [if ExecutionService is already connected).