in ons-core/ons-auth4client/src/main/java/org/apache/rocketmq/ons/api/impl/authority/SessionCredentials.java [154:207]
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (obj == null) {
return false;
}
if (getClass() != obj.getClass()) {
return false;
}
SessionCredentials other = (SessionCredentials) obj;
if (accessKey == null) {
if (other.accessKey != null) {
return false;
}
} else if (!accessKey.equals(other.accessKey)) {
return false;
}
if (secretKey == null) {
if (other.secretKey != null) {
return false;
}
} else if (!secretKey.equals(other.secretKey)) {
return false;
}
if (signature == null) {
if (other.signature != null) {
return false;
}
} else if (!signature.equals(other.signature)) {
return false;
}
if (signatureMethod == null) {
if (other.signatureMethod != null) {
return false;
}
} else if (!signatureMethod.equals(other.signatureMethod)) {
return false;
}
if (onsChannel == null) {
if (other.onsChannel != null) {
return false;
}
} else if (!onsChannel.equals(other.onsChannel)) {
return false;
}
return true;
}