/** * Creates a new authentication with the specified properties * * @param username The username, may be {@code null}. * @param password The password, may be {@code null}. * @param privateKeyFile The path to the private key file, may be {@code null}. * @param passphrase The passphrase for the private key file, may be {@code null}. */ public Authentication( String username, char[] password, String privateKeyFile, char[] passphrase ) { this( username, privateKeyFile, clone( password ), clone( passphrase ) ); }
/** * Creates a new authentication with the specified properties * * @param username The username, may be {@code null}. * @param password The password, may be {@code null}. * @param privateKeyFile The path to the private key file, may be {@code null}. * @param passphrase The passphrase for the private key file, may be {@code null}. */ public Authentication( String username, char[] password, String privateKeyFile, char[] passphrase ) { this( username, privateKeyFile, clone( password ), clone( passphrase ) ); }
/** * Creates a new authentication with the specified properties * * @param username The username, may be {@code null}. * @param password The password, may be {@code null}. * @param privateKeyFile The path to the private key file, may be {@code null}. * @param passphrase The passphrase for the private key file, may be {@code null}. */ public Authentication( String username, char[] password, String privateKeyFile, char[] passphrase ) { this( username, privateKeyFile, clone( password ), clone( passphrase ) ); }
/** * Sets the password to use for authentication. * * @param password The password, may be {@code null}. * @return The new authentication, never {@code null}. */ public Authentication setPassword( char[] password ) { return setPasswordInternal( clone( password ) ); }
/** * Sets the password to use for authentication. * * @param password The password, may be {@code null}. * @return The new authentication, never {@code null}. */ public Authentication setPassword( char[] password ) { return setPasswordInternal( clone( password ) ); }
/** * Sets the passphrase for the private key file. * * @param passphrase The passphrase for the private key file, may be {@code null}. * @return The new authentication, never {@code null}. */ public Authentication setPassphrase( char[] passphrase ) { return setPassphraseInternal( clone( passphrase ) ); }
/** * Sets the passphrase for the private key file. * * @param passphrase The passphrase for the private key file, may be {@code null}. * @return The new authentication, never {@code null}. */ public Authentication setPassphrase( char[] passphrase ) { return setPassphraseInternal( clone( passphrase ) ); }
/** * Sets the password to use for authentication. * * @param password The password, may be {@code null}. * @return The new authentication, never {@code null}. */ public Authentication setPassword( char[] password ) { return setPasswordInternal( clone( password ) ); }
/** * Sets the passphrase for the private key file. * * @param passphrase The passphrase for the private key file, may be {@code null}. * @return The new authentication, never {@code null}. */ public Authentication setPassphrase( char[] passphrase ) { return setPassphraseInternal( clone( passphrase ) ); }