Methods Summary |
---|
public boolean | equals(java.lang.Object o)Compare two instances of the credential and return true if they are
the same and false otherwise.
if(o instanceof PasswordCredential) {
PasswordCredential pc = (PasswordCredential) o;
if(pc.getUser().equals(username) &&
pc.getPassword().equals(password) &&
pc.getRealm().equals(realm)) {
return true;
}
}
return false;
|
public java.lang.String | getPassword()Return the password.
return password;
|
public java.lang.String | getRealm()Return the realm name.
return realm;
|
public byte[] | getTargetName()Return the target_name
return this.target_name;
|
public java.lang.String | getUser()Return the username.
return username;
|
public int | hashCode()Return the hashCode computed from the password and realm name.
return username.hashCode() + password.hashCode() + realm.hashCode();
|
public void | setRealm(java.lang.String realm)
if(!readOnly){
this.realm = realm;
}
|
public java.lang.String | toString()The string representation of the credential.
String s = "Realm=" + realm;
s = s + " Username=" + username;
s = s + " Password=" + "########";
s = s + " TargetName = " + target_name;
return s;
|