@Test public void testLoginAnonymous2() { Credentials credentials = new Credentials(PreferencesFactory.get().getProperty("connection.login.anon.name"), null); assertTrue(credentials.validate(new TestProtocol(Scheme.ftp), new LoginOptions())); }
public boolean validate(final Protocol protocol, final LoginOptions options) { return protocol.validate(this, options); }
Credentials implements Comparable<Credentials> { public boolean validate(final Protocol protocol, final LoginOptions options) { return protocol.validate(this, options); } }
Credentials implements Comparable<Credentials> { public boolean validate(final Protocol protocol, final LoginOptions options) { return protocol.validate(this, options); } Credentials();  Credentials(final Credentials copy);  Credentials(final String user);  Credentials(final String user, final String password);  Credentials(final String user, final String password, final String token); }
Credentials implements Comparable<Credentials> { public boolean validate(final Protocol protocol, final LoginOptions options) { return protocol.validate(this, options); } Credentials();  Credentials(final Credentials copy);  Credentials(final String user);  Credentials(final String user, final String password);  Credentials(final String user, final String password, final String token); String getUsername(); void setUsername(final String user); Credentials withUsername(final String user); String getPassword(); void setPassword(final String password); Credentials withPassword(final String password); String getToken(); void setToken(final String token); Credentials withToken(final String token); OAuthTokens getOauth(); void setOauth(final OAuthTokens oauth); Credentials withOauth(final OAuthTokens oauth); boolean isSaved(); void setSaved(final boolean saved); Credentials withSaved(final boolean saved); boolean isPassed(); void setPassed(final boolean passed); boolean isAnonymousLogin(); boolean isPasswordAuthentication(); boolean isTokenAuthentication(); boolean isOAuthAuthentication(); boolean isPublicKeyAuthentication(); Credentials withIdentity(final Local file); Local getIdentity(); void setIdentity(final Local file); String getIdentityPassphrase(); void setIdentityPassphrase(final String identityPassphrase); Credentials withIdentityPassphrase(final String identityPassphrase); String getCertificate(); void setCertificate(final String certificate); boolean isCertificateAuthentication(); boolean validate(final Protocol protocol, final LoginOptions options); void reset(); @Override int compareTo(final Credentials o); @Override boolean equals(final Object o); @Override int hashCode(); @Override String toString(); }
Credentials implements Comparable<Credentials> { public boolean validate(final Protocol protocol, final LoginOptions options) { return protocol.validate(this, options); } Credentials();  Credentials(final Credentials copy);  Credentials(final String user);  Credentials(final String user, final String password);  Credentials(final String user, final String password, final String token); String getUsername(); void setUsername(final String user); Credentials withUsername(final String user); String getPassword(); void setPassword(final String password); Credentials withPassword(final String password); String getToken(); void setToken(final String token); Credentials withToken(final String token); OAuthTokens getOauth(); void setOauth(final OAuthTokens oauth); Credentials withOauth(final OAuthTokens oauth); boolean isSaved(); void setSaved(final boolean saved); Credentials withSaved(final boolean saved); boolean isPassed(); void setPassed(final boolean passed); boolean isAnonymousLogin(); boolean isPasswordAuthentication(); boolean isTokenAuthentication(); boolean isOAuthAuthentication(); boolean isPublicKeyAuthentication(); Credentials withIdentity(final Local file); Local getIdentity(); void setIdentity(final Local file); String getIdentityPassphrase(); void setIdentityPassphrase(final String identityPassphrase); Credentials withIdentityPassphrase(final String identityPassphrase); String getCertificate(); void setCertificate(final String certificate); boolean isCertificateAuthentication(); boolean validate(final Protocol protocol, final LoginOptions options); void reset(); @Override int compareTo(final Credentials o); @Override boolean equals(final Object o); @Override int hashCode(); @Override String toString();  }