@Override public boolean equals(Object that) { return that instanceof EC2PrivateKey && this.privateKey.equals(((EC2PrivateKey)that).privateKey); }
@Override public boolean equals(Object that) { return this.getClass() == that.getClass() && this.privateKey.equals(((EC2PrivateKey) that).privateKey); }
@Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; ConnectionFactory that = (ConnectionFactory) o; if (password != null ? !password.equals(that.password) : that.password != null) return false; if (url != null ? !url.equals(that.url) : that.url != null) return false; if (username != null ? !username.equals(that.username) : that.username != null) return false; return true; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (this.getClass() != obj.getClass()) return false; final WindowsData other = (WindowsData) obj; if (bootDelay == null) { if (other.bootDelay != null) return false; } else if (!bootDelay.equals(other.bootDelay)) return false; if (password == null) { if (other.password != null) return false; } else if (!password.equals(other.password)) return false; return useHTTPS == other.useHTTPS; } }
public boolean matches(@NonNull Credentials item) { if (item instanceof StandardUsernamePasswordCredentials && password != null && StandardUsernamePasswordCredentials.class.cast(item).getPassword().equals(password)) { return true; } if (privatekeyContent != null && item instanceof SSHUserPrivateKey) { for (String key : SSHUserPrivateKey.class.cast(item).getPrivateKeys()) { if (pemKeyEquals(key, privatekeyContent)) { return true; } } } return false; } }));
public boolean matches(@NonNull Credentials item) { if (item instanceof StandardUsernamePasswordCredentials && password != null && StandardUsernamePasswordCredentials.class.cast(item).getPassword().equals(password)) { return true; } if (privatekeyContent != null && item instanceof SSHUserPrivateKey) { for (String key : SSHUserPrivateKey.class.cast(item).getPrivateKeys()) { if (pemKeyEquals(key, privatekeyContent)) { return true; } } } return false; } }));
ACL.SYSTEM, Collections.<DomainRequirement>emptyList())) { if (c.getPassword().equals(result.getPassword())) {