- 28,932 files - Full Java source code - Smali files - Resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
100 lines
3.2 KiB
Java
100 lines
3.2 KiB
Java
package com.amazonaws.services.securitytoken.model;
|
|
|
|
import java.io.Serializable;
|
|
import java.util.Date;
|
|
|
|
/* loaded from: classes.dex */
|
|
public class Credentials implements Serializable {
|
|
public String accessKeyId;
|
|
public Date expiration;
|
|
public String secretAccessKey;
|
|
public String sessionToken;
|
|
|
|
public String getAccessKeyId() {
|
|
return this.accessKeyId;
|
|
}
|
|
|
|
public Date getExpiration() {
|
|
return this.expiration;
|
|
}
|
|
|
|
public String getSecretAccessKey() {
|
|
return this.secretAccessKey;
|
|
}
|
|
|
|
public String getSessionToken() {
|
|
return this.sessionToken;
|
|
}
|
|
|
|
public void setAccessKeyId(String str) {
|
|
this.accessKeyId = str;
|
|
}
|
|
|
|
public void setExpiration(Date date) {
|
|
this.expiration = date;
|
|
}
|
|
|
|
public void setSecretAccessKey(String str) {
|
|
this.secretAccessKey = str;
|
|
}
|
|
|
|
public void setSessionToken(String str) {
|
|
this.sessionToken = str;
|
|
}
|
|
|
|
public String toString() {
|
|
StringBuilder sb = new StringBuilder();
|
|
sb.append("{");
|
|
if (getAccessKeyId() != null) {
|
|
sb.append("AccessKeyId: " + getAccessKeyId() + ",");
|
|
}
|
|
if (getSecretAccessKey() != null) {
|
|
sb.append("SecretAccessKey: " + getSecretAccessKey() + ",");
|
|
}
|
|
if (getSessionToken() != null) {
|
|
sb.append("SessionToken: " + getSessionToken() + ",");
|
|
}
|
|
if (getExpiration() != null) {
|
|
sb.append("Expiration: " + getExpiration());
|
|
}
|
|
sb.append("}");
|
|
return sb.toString();
|
|
}
|
|
|
|
public int hashCode() {
|
|
return (((((((getAccessKeyId() == null ? 0 : getAccessKeyId().hashCode()) + 31) * 31) + (getSecretAccessKey() == null ? 0 : getSecretAccessKey().hashCode())) * 31) + (getSessionToken() == null ? 0 : getSessionToken().hashCode())) * 31) + (getExpiration() != null ? getExpiration().hashCode() : 0);
|
|
}
|
|
|
|
public boolean equals(Object obj) {
|
|
if (this == obj) {
|
|
return true;
|
|
}
|
|
if (obj == null || !(obj instanceof Credentials)) {
|
|
return false;
|
|
}
|
|
Credentials credentials = (Credentials) obj;
|
|
if ((credentials.getAccessKeyId() == null) ^ (getAccessKeyId() == null)) {
|
|
return false;
|
|
}
|
|
if (credentials.getAccessKeyId() != null && !credentials.getAccessKeyId().equals(getAccessKeyId())) {
|
|
return false;
|
|
}
|
|
if ((credentials.getSecretAccessKey() == null) ^ (getSecretAccessKey() == null)) {
|
|
return false;
|
|
}
|
|
if (credentials.getSecretAccessKey() != null && !credentials.getSecretAccessKey().equals(getSecretAccessKey())) {
|
|
return false;
|
|
}
|
|
if ((credentials.getSessionToken() == null) ^ (getSessionToken() == null)) {
|
|
return false;
|
|
}
|
|
if (credentials.getSessionToken() != null && !credentials.getSessionToken().equals(getSessionToken())) {
|
|
return false;
|
|
}
|
|
if ((credentials.getExpiration() == null) ^ (getExpiration() == null)) {
|
|
return false;
|
|
}
|
|
return credentials.getExpiration() == null || credentials.getExpiration().equals(getExpiration());
|
|
}
|
|
}
|