in ws-security-common/src/main/java/org/apache/wss4j/common/saml/bean/AuthenticationStatementBean.java [163:214]
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (!(o instanceof AuthenticationStatementBean)) {
return false;
}
AuthenticationStatementBean that = (AuthenticationStatementBean) o;
if (authenticationInstant == null && that.authenticationInstant != null) {
return false;
} else if (authenticationInstant != null
&& !authenticationInstant.equals(that.authenticationInstant)) {
return false;
}
if (sessionNotOnOrAfter == null && that.sessionNotOnOrAfter != null) {
return false;
} else if (sessionNotOnOrAfter != null
&& !sessionNotOnOrAfter.equals(that.sessionNotOnOrAfter)) {
return false;
}
if (authenticationMethod == null && that.authenticationMethod != null) {
return false;
} else if (authenticationMethod != null
&& !authenticationMethod.equals(that.authenticationMethod)) {
return false;
}
if (subject == null && that.subject != null) {
return false;
} else if (subject != null
&& !subject.equals(that.subject)) {
return false;
}
if (subjectLocality == null && that.subjectLocality != null) {
return false;
} else if (subjectLocality != null && !subjectLocality.equals(that.subjectLocality)) {
return false;
}
if (sessionIndex == null && that.sessionIndex != null) {
return false;
} else if (sessionIndex != null && !sessionIndex.equals(that.sessionIndex)) {
return false;
}
return true;
}