@Override public boolean equals(Object o) { if (this == o) return true; if (!(o instanceof WeiboToken)) return false; if (!super.equals(o)) return false; WeiboToken that = (WeiboToken) o; return uid != null ? uid.equals(that.uid) : that.uid == null; }
@Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; if (!super.equals(o)) return false; OrcidToken that = (OrcidToken) o; return !(orcid != null ? !orcid.equals(that.orcid) : that.orcid != null); }
@Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; if (!super.equals(o)) return false; WechatToken that = (WechatToken) o; if (openid != null ? !openid.equals(that.openid) : that.openid != null) return false; return unionid != null ? unionid.equals(that.unionid) : that.unionid == null; }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (getClass() != obj.getClass()) { return false; } if (!super.equals(obj)) { return false; } return Objects.equals(email, ((VKOAuth2AccessToken) obj).getEmail()); } }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (getClass() != obj.getClass()) { return false; } if (!super.equals(obj)) { return false; } return Objects.equals(instanceUrl, ((SalesforceToken) obj).getInstanceUrl()); } }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (getClass() != obj.getClass()) { return false; } if (!super.equals(obj)) { return false; } return Objects.equals(userId, ((FitBitOAuth2AccessToken) obj).getUserId()); } }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (getClass() != obj.getClass()) { return false; } if (!super.equals(obj)) { return false; } return Objects.equals(openIdToken, ((OpenIdOAuth2AccessToken) obj).getOpenIdToken()); } }
OAuth2AccessToken token = _credentialsStore.get(providerName, OAuth2AccessToken.class); if (token == null || token.equals("")) { throw new Exception("No token found");