@Override public boolean equals(Object obj) { if (!super.equals(obj)) { return false; } if (obj instanceof AnonymousAuthenticationToken) { AnonymousAuthenticationToken test = (AnonymousAuthenticationToken) obj; if (this.getKeyHash() != test.getKeyHash()) { return false; } return true; } return false; }
@Override public boolean equals(Object obj) { if (!super.equals(obj)) { return false; } if (obj instanceof RememberMeAuthenticationToken) { RememberMeAuthenticationToken test = (RememberMeAuthenticationToken) obj; if (this.getKeyHash() != test.getKeyHash()) { return false; } return true; } return false; }
@Override public boolean equals(Object obj) { if (!super.equals(obj)) { return false; } if (obj instanceof AnonymousAuthenticationToken) { AnonymousAuthenticationToken test = (AnonymousAuthenticationToken) obj; if (this.getKeyHash() != test.getKeyHash()) { return false; } return true; } return false; }
@Override public boolean equals(Object obj) { if (!super.equals(obj)) { return false; } if (obj instanceof RememberMeAuthenticationToken) { RememberMeAuthenticationToken test = (RememberMeAuthenticationToken) obj; if (this.getKeyHash() != test.getKeyHash()) { return false; } return true; } return false; }
@Override public boolean equals(final Object obj) { if (!super.equals(obj)) { return false; } if (obj instanceof CasAuthenticationToken) { CasAuthenticationToken test = (CasAuthenticationToken) obj; if (!this.assertion.equals(test.getAssertion())) { return false; } if (this.getKeyHash() != test.getKeyHash()) { return false; } return true; } return false; }
@Override public boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof OAuth2Authentication)) { return false; } if (!super.equals(o)) { return false; } OAuth2Authentication that = (OAuth2Authentication) o; if (!storedRequest.equals(that.storedRequest)) { return false; } if (userAuthentication != null ? !userAuthentication.equals(that.userAuthentication) : that.userAuthentication != null) { return false; } if (getDetails()!=null ? !getDetails().equals(that.getDetails()) : that.getDetails()!=null) { // return false; } return true; }
/** * equals() is based only on the Kerberos token */ @Override public boolean equals(Object obj) { if (this == obj) return true; if (!super.equals(obj)) return false; if (getClass() != obj.getClass()) return false; KerberosServiceRequestToken other = (KerberosServiceRequestToken) obj; if (!Arrays.equals(token, other.token)) return false; return true; }
/** * equals() is based only on the Kerberos token */ @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!super.equals(obj)) { return false; } if (getClass() != obj.getClass()) { return false; } KerberosServiceRequestToken other = (KerberosServiceRequestToken) obj; if (!Arrays.equals(token, other.token)) { //NOPMD return false; } return true; }
/** * Equals. * {@inheritDoc} * @param obj The obj. * @return The result. */ @Override public boolean equals(Object obj) { if (! super.equals(obj)) { return false; } if (! (obj instanceof TicketAuthenticationToken)) { return false; } TicketAuthenticationToken test = (TicketAuthenticationToken) obj; //After authentication, the token's principal is the {@link Ticket} itself. return ticket.equals(test.getPrincipal()); }
/** * Equals. * {@inheritDoc} * @param obj The obj. * @return The result. */ @Override public boolean equals(Object obj) { if (! super.equals(obj)) { return false; } if (! (obj instanceof TicketAuthenticationToken)) { return false; } TicketAuthenticationToken test = (TicketAuthenticationToken) obj; //After authentication, the token's principal is the {@link Ticket} itself. return ticket.equals(test.getPrincipal()); }
public boolean equals(Object obj) { if (!super.equals(obj)) return false; if (obj instanceof EveryLastLoginAuthenticationToken) { EveryLastLoginAuthenticationToken test = (EveryLastLoginAuthenticationToken) obj; return this.getKeyHash() == test.getKeyHash(); } return false; }
public boolean equals(Object obj) { if (!super.equals(obj)) { return false; } if (obj instanceof AnonymousAuthenticationToken) { AnonymousAuthenticationToken test = (AnonymousAuthenticationToken) obj; if (this.getKeyHash() != test.getKeyHash()) { return false; } return true; } return false; }
public boolean equals(Object obj) { if (!super.equals(obj)) { return false; } if (obj instanceof RememberMeAuthenticationToken) { RememberMeAuthenticationToken test = (RememberMeAuthenticationToken) obj; if (this.getKeyHash() != test.getKeyHash()) { return false; } return true; } return false; }
@Override public boolean equals(Object obj) { if (!super.equals(obj)) { return false; } if (obj instanceof AnonymousAuthenticationToken) { AnonymousAuthenticationToken test = (AnonymousAuthenticationToken) obj; if (this.getKeyHash() != test.getKeyHash()) { return false; } return true; } return false; }
@Override public boolean equals(Object obj) { if (!super.equals(obj)) { return false; } if (obj instanceof RememberMeAuthenticationToken) { RememberMeAuthenticationToken test = (RememberMeAuthenticationToken) obj; if (this.getKeyHash() != test.getKeyHash()) { return false; } return true; } return false; }
@Override public boolean equals(final Object obj) { if (!super.equals(obj)) { return false; } if (obj instanceof CasAuthenticationToken) { CasAuthenticationToken test = (CasAuthenticationToken) obj; if (!this.assertion.equals(test.getAssertion())) { return false; } if (this.getKeyHash() != test.getKeyHash()) { return false; } return true; } return false; }
@Override public boolean equals(final Object obj) { if (!super.equals(obj)) { return false; } if (obj instanceof CasAuthenticationToken) { CasAuthenticationToken test = (CasAuthenticationToken) obj; if (!this.assertion.equals(test.getAssertion())) { return false; } if (this.getKeyHash() != test.getKeyHash()) { return false; } return true; } return false; }
@Override public boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof OAuth2Authentication)) { return false; } if (!super.equals(o)) { return false; } OAuth2Authentication that = (OAuth2Authentication) o; if (!storedRequest.equals(that.storedRequest)) { return false; } if (userAuthentication != null ? !userAuthentication.equals(that.userAuthentication) : that.userAuthentication != null) { return false; } if (getDetails()!=null ? !getDetails().equals(that.getDetails()) : that.getDetails()!=null) { // return false; } return true; }