// Decompiled by Jad v1.5.8e. Copyright 2001 Pavel Kouznetsov. // Jad home page: http://www.geocities.com/kpdus/jad.html // Decompiler options: braces fieldsfirst space lnc package org.apache.oltu.oauth2.common.domain.credentials; // Referenced classes of package org.apache.oltu.oauth2.common.domain.credentials: // Credentials public class BasicCredentials implements Credentials { private String clientId; private String clientSecret; private Long expiresIn; private Long issuedAt; BasicCredentials() { } public BasicCredentials(String s, String s1, Long long1, Long long2) { clientId = s; clientSecret = s1; issuedAt = long1; expiresIn = long2; } public boolean equals(Object obj) { if (this != obj) { if (obj == null || getClass() != obj.getClass()) { return false; } obj = (BasicCredentials)obj; if (clientId == null ? ((BasicCredentials) (obj)).clientId != null : !clientId.equals(((BasicCredentials) (obj)).clientId)) { return false; } if (clientSecret == null ? ((BasicCredentials) (obj)).clientSecret != null : !clientSecret.equals(((BasicCredentials) (obj)).clientSecret)) { return false; } if (expiresIn == null ? ((BasicCredentials) (obj)).expiresIn != null : !expiresIn.equals(((BasicCredentials) (obj)).expiresIn)) { return false; } if (issuedAt == null ? ((BasicCredentials) (obj)).issuedAt != null : !issuedAt.equals(((BasicCredentials) (obj)).issuedAt)) { return false; } } return true; } public String getClientId() { return clientId; } public String getClientSecret() { return clientSecret; } public Long getExpiresIn() { return expiresIn; } public Long getIssuedAt() { return issuedAt; } public int hashCode() { int l = 0; int i; int j; int k; if (clientId != null) { i = clientId.hashCode(); } else { i = 0; } if (clientSecret != null) { j = clientSecret.hashCode(); } else { j = 0; } if (issuedAt != null) { k = issuedAt.hashCode(); } else { k = 0; } if (expiresIn != null) { l = expiresIn.hashCode(); } return ((i * 31 + j) * 31 + k) * 31 + l; } public void setClientId(String s) { clientId = s; } public void setClientSecret(String s) { clientSecret = s; } public void setExpiresIn(Long long1) { expiresIn = long1; } public void setIssuedAt(Long long1) { issuedAt = long1; } }