Add decompiled APK source code (JADX)

- 28,932 files
- Full Java source code
- Smali files
- Resources

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
2026-02-18 14:52:23 -08:00
parent cc210a65ea
commit f9d20bb3fc
26991 changed files with 2541449 additions and 0 deletions

View File

@@ -0,0 +1,8 @@
package com.amazonaws.services.cognitoidentity.model;
import com.amazonaws.AmazonServiceException;
/* loaded from: classes.dex */
public abstract class ConcurrentModificationException extends AmazonServiceException {
private static final long serialVersionUID = 1;
}

View File

@@ -0,0 +1,99 @@
package com.amazonaws.services.cognitoidentity.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 secretKey;
public String sessionToken;
public String getAccessKeyId() {
return this.accessKeyId;
}
public Date getExpiration() {
return this.expiration;
}
public String getSecretKey() {
return this.secretKey;
}
public String getSessionToken() {
return this.sessionToken;
}
public void setAccessKeyId(String str) {
this.accessKeyId = str;
}
public void setExpiration(Date date) {
this.expiration = date;
}
public void setSecretKey(String str) {
this.secretKey = 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 (getSecretKey() != null) {
sb.append("SecretKey: " + getSecretKey() + ",");
}
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) + (getSecretKey() == null ? 0 : getSecretKey().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.getSecretKey() == null) ^ (getSecretKey() == null)) {
return false;
}
if (credentials.getSecretKey() != null && !credentials.getSecretKey().equals(getSecretKey())) {
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());
}
}

View File

@@ -0,0 +1,8 @@
package com.amazonaws.services.cognitoidentity.model;
import com.amazonaws.AmazonServiceException;
/* loaded from: classes.dex */
public abstract class DeveloperUserAlreadyRegisteredException extends AmazonServiceException {
private static final long serialVersionUID = 1;
}

View File

@@ -0,0 +1,8 @@
package com.amazonaws.services.cognitoidentity.model;
import com.amazonaws.AmazonServiceException;
/* loaded from: classes.dex */
public abstract class ExternalServiceException extends AmazonServiceException {
private static final long serialVersionUID = 1;
}

View File

@@ -0,0 +1,85 @@
package com.amazonaws.services.cognitoidentity.model;
import com.amazonaws.AmazonWebServiceRequest;
import java.io.Serializable;
import java.util.Map;
/* loaded from: classes.dex */
public class GetCredentialsForIdentityRequest extends AmazonWebServiceRequest implements Serializable {
public String customRoleArn;
public String identityId;
public Map logins;
public String getCustomRoleArn() {
return this.customRoleArn;
}
public String getIdentityId() {
return this.identityId;
}
public Map getLogins() {
return this.logins;
}
public GetCredentialsForIdentityRequest withCustomRoleArn(String str) {
this.customRoleArn = str;
return this;
}
public GetCredentialsForIdentityRequest withIdentityId(String str) {
this.identityId = str;
return this;
}
public GetCredentialsForIdentityRequest withLogins(Map map) {
this.logins = map;
return this;
}
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("{");
if (getIdentityId() != null) {
sb.append("IdentityId: " + getIdentityId() + ",");
}
if (getLogins() != null) {
sb.append("Logins: " + getLogins() + ",");
}
if (getCustomRoleArn() != null) {
sb.append("CustomRoleArn: " + getCustomRoleArn());
}
sb.append("}");
return sb.toString();
}
public int hashCode() {
return (((((getIdentityId() == null ? 0 : getIdentityId().hashCode()) + 31) * 31) + (getLogins() == null ? 0 : getLogins().hashCode())) * 31) + (getCustomRoleArn() != null ? getCustomRoleArn().hashCode() : 0);
}
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (obj == null || !(obj instanceof GetCredentialsForIdentityRequest)) {
return false;
}
GetCredentialsForIdentityRequest getCredentialsForIdentityRequest = (GetCredentialsForIdentityRequest) obj;
if ((getCredentialsForIdentityRequest.getIdentityId() == null) ^ (getIdentityId() == null)) {
return false;
}
if (getCredentialsForIdentityRequest.getIdentityId() != null && !getCredentialsForIdentityRequest.getIdentityId().equals(getIdentityId())) {
return false;
}
if ((getCredentialsForIdentityRequest.getLogins() == null) ^ (getLogins() == null)) {
return false;
}
if (getCredentialsForIdentityRequest.getLogins() != null && !getCredentialsForIdentityRequest.getLogins().equals(getLogins())) {
return false;
}
if ((getCredentialsForIdentityRequest.getCustomRoleArn() == null) ^ (getCustomRoleArn() == null)) {
return false;
}
return getCredentialsForIdentityRequest.getCustomRoleArn() == null || getCredentialsForIdentityRequest.getCustomRoleArn().equals(getCustomRoleArn());
}
}

View File

@@ -0,0 +1,62 @@
package com.amazonaws.services.cognitoidentity.model;
import java.io.Serializable;
/* loaded from: classes.dex */
public class GetCredentialsForIdentityResult implements Serializable {
public Credentials credentials;
public String identityId;
public Credentials getCredentials() {
return this.credentials;
}
public String getIdentityId() {
return this.identityId;
}
public void setCredentials(Credentials credentials) {
this.credentials = credentials;
}
public void setIdentityId(String str) {
this.identityId = str;
}
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("{");
if (getIdentityId() != null) {
sb.append("IdentityId: " + getIdentityId() + ",");
}
if (getCredentials() != null) {
sb.append("Credentials: " + getCredentials());
}
sb.append("}");
return sb.toString();
}
public int hashCode() {
return (((getIdentityId() == null ? 0 : getIdentityId().hashCode()) + 31) * 31) + (getCredentials() != null ? getCredentials().hashCode() : 0);
}
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (obj == null || !(obj instanceof GetCredentialsForIdentityResult)) {
return false;
}
GetCredentialsForIdentityResult getCredentialsForIdentityResult = (GetCredentialsForIdentityResult) obj;
if ((getCredentialsForIdentityResult.getIdentityId() == null) ^ (getIdentityId() == null)) {
return false;
}
if (getCredentialsForIdentityResult.getIdentityId() != null && !getCredentialsForIdentityResult.getIdentityId().equals(getIdentityId())) {
return false;
}
if ((getCredentialsForIdentityResult.getCredentials() == null) ^ (getCredentials() == null)) {
return false;
}
return getCredentialsForIdentityResult.getCredentials() == null || getCredentialsForIdentityResult.getCredentials().equals(getCredentials());
}
}

View File

@@ -0,0 +1,85 @@
package com.amazonaws.services.cognitoidentity.model;
import com.amazonaws.AmazonWebServiceRequest;
import java.io.Serializable;
import java.util.Map;
/* loaded from: classes.dex */
public class GetIdRequest extends AmazonWebServiceRequest implements Serializable {
public String accountId;
public String identityPoolId;
public Map logins;
public String getAccountId() {
return this.accountId;
}
public String getIdentityPoolId() {
return this.identityPoolId;
}
public Map getLogins() {
return this.logins;
}
public GetIdRequest withAccountId(String str) {
this.accountId = str;
return this;
}
public GetIdRequest withIdentityPoolId(String str) {
this.identityPoolId = str;
return this;
}
public GetIdRequest withLogins(Map map) {
this.logins = map;
return this;
}
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("{");
if (getAccountId() != null) {
sb.append("AccountId: " + getAccountId() + ",");
}
if (getIdentityPoolId() != null) {
sb.append("IdentityPoolId: " + getIdentityPoolId() + ",");
}
if (getLogins() != null) {
sb.append("Logins: " + getLogins());
}
sb.append("}");
return sb.toString();
}
public int hashCode() {
return (((((getAccountId() == null ? 0 : getAccountId().hashCode()) + 31) * 31) + (getIdentityPoolId() == null ? 0 : getIdentityPoolId().hashCode())) * 31) + (getLogins() != null ? getLogins().hashCode() : 0);
}
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (obj == null || !(obj instanceof GetIdRequest)) {
return false;
}
GetIdRequest getIdRequest = (GetIdRequest) obj;
if ((getIdRequest.getAccountId() == null) ^ (getAccountId() == null)) {
return false;
}
if (getIdRequest.getAccountId() != null && !getIdRequest.getAccountId().equals(getAccountId())) {
return false;
}
if ((getIdRequest.getIdentityPoolId() == null) ^ (getIdentityPoolId() == null)) {
return false;
}
if (getIdRequest.getIdentityPoolId() != null && !getIdRequest.getIdentityPoolId().equals(getIdentityPoolId())) {
return false;
}
if ((getIdRequest.getLogins() == null) ^ (getLogins() == null)) {
return false;
}
return getIdRequest.getLogins() == null || getIdRequest.getLogins().equals(getLogins());
}
}

View File

@@ -0,0 +1,44 @@
package com.amazonaws.services.cognitoidentity.model;
import java.io.Serializable;
/* loaded from: classes.dex */
public class GetIdResult implements Serializable {
public String identityId;
public String getIdentityId() {
return this.identityId;
}
public void setIdentityId(String str) {
this.identityId = str;
}
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("{");
if (getIdentityId() != null) {
sb.append("IdentityId: " + getIdentityId());
}
sb.append("}");
return sb.toString();
}
public int hashCode() {
return 31 + (getIdentityId() == null ? 0 : getIdentityId().hashCode());
}
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (obj == null || !(obj instanceof GetIdResult)) {
return false;
}
GetIdResult getIdResult = (GetIdResult) obj;
if ((getIdResult.getIdentityId() == null) ^ (getIdentityId() == null)) {
return false;
}
return getIdResult.getIdentityId() == null || getIdResult.getIdentityId().equals(getIdentityId());
}
}

View File

@@ -0,0 +1,66 @@
package com.amazonaws.services.cognitoidentity.model;
import com.amazonaws.AmazonWebServiceRequest;
import java.io.Serializable;
import java.util.Map;
/* loaded from: classes.dex */
public class GetOpenIdTokenRequest extends AmazonWebServiceRequest implements Serializable {
public String identityId;
public Map logins;
public String getIdentityId() {
return this.identityId;
}
public Map getLogins() {
return this.logins;
}
public GetOpenIdTokenRequest withIdentityId(String str) {
this.identityId = str;
return this;
}
public GetOpenIdTokenRequest withLogins(Map map) {
this.logins = map;
return this;
}
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("{");
if (getIdentityId() != null) {
sb.append("IdentityId: " + getIdentityId() + ",");
}
if (getLogins() != null) {
sb.append("Logins: " + getLogins());
}
sb.append("}");
return sb.toString();
}
public int hashCode() {
return (((getIdentityId() == null ? 0 : getIdentityId().hashCode()) + 31) * 31) + (getLogins() != null ? getLogins().hashCode() : 0);
}
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (obj == null || !(obj instanceof GetOpenIdTokenRequest)) {
return false;
}
GetOpenIdTokenRequest getOpenIdTokenRequest = (GetOpenIdTokenRequest) obj;
if ((getOpenIdTokenRequest.getIdentityId() == null) ^ (getIdentityId() == null)) {
return false;
}
if (getOpenIdTokenRequest.getIdentityId() != null && !getOpenIdTokenRequest.getIdentityId().equals(getIdentityId())) {
return false;
}
if ((getOpenIdTokenRequest.getLogins() == null) ^ (getLogins() == null)) {
return false;
}
return getOpenIdTokenRequest.getLogins() == null || getOpenIdTokenRequest.getLogins().equals(getLogins());
}
}

View File

@@ -0,0 +1,62 @@
package com.amazonaws.services.cognitoidentity.model;
import java.io.Serializable;
/* loaded from: classes.dex */
public class GetOpenIdTokenResult implements Serializable {
public String identityId;
public String token;
public String getIdentityId() {
return this.identityId;
}
public String getToken() {
return this.token;
}
public void setIdentityId(String str) {
this.identityId = str;
}
public void setToken(String str) {
this.token = str;
}
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("{");
if (getIdentityId() != null) {
sb.append("IdentityId: " + getIdentityId() + ",");
}
if (getToken() != null) {
sb.append("Token: " + getToken());
}
sb.append("}");
return sb.toString();
}
public int hashCode() {
return (((getIdentityId() == null ? 0 : getIdentityId().hashCode()) + 31) * 31) + (getToken() != null ? getToken().hashCode() : 0);
}
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (obj == null || !(obj instanceof GetOpenIdTokenResult)) {
return false;
}
GetOpenIdTokenResult getOpenIdTokenResult = (GetOpenIdTokenResult) obj;
if ((getOpenIdTokenResult.getIdentityId() == null) ^ (getIdentityId() == null)) {
return false;
}
if (getOpenIdTokenResult.getIdentityId() != null && !getOpenIdTokenResult.getIdentityId().equals(getIdentityId())) {
return false;
}
if ((getOpenIdTokenResult.getToken() == null) ^ (getToken() == null)) {
return false;
}
return getOpenIdTokenResult.getToken() == null || getOpenIdTokenResult.getToken().equals(getToken());
}
}

View File

@@ -0,0 +1,8 @@
package com.amazonaws.services.cognitoidentity.model;
import com.amazonaws.AmazonServiceException;
/* loaded from: classes.dex */
public abstract class InternalErrorException extends AmazonServiceException {
private static final long serialVersionUID = 1;
}

View File

@@ -0,0 +1,8 @@
package com.amazonaws.services.cognitoidentity.model;
import com.amazonaws.AmazonServiceException;
/* loaded from: classes.dex */
public abstract class InvalidIdentityPoolConfigurationException extends AmazonServiceException {
private static final long serialVersionUID = 1;
}

View File

@@ -0,0 +1,8 @@
package com.amazonaws.services.cognitoidentity.model;
import com.amazonaws.AmazonServiceException;
/* loaded from: classes.dex */
public abstract class InvalidParameterException extends AmazonServiceException {
private static final long serialVersionUID = 1;
}

View File

@@ -0,0 +1,8 @@
package com.amazonaws.services.cognitoidentity.model;
import com.amazonaws.AmazonServiceException;
/* loaded from: classes.dex */
public abstract class LimitExceededException extends AmazonServiceException {
private static final long serialVersionUID = 1;
}

View File

@@ -0,0 +1,8 @@
package com.amazonaws.services.cognitoidentity.model;
import com.amazonaws.AmazonServiceException;
/* loaded from: classes.dex */
public abstract class NotAuthorizedException extends AmazonServiceException {
private static final long serialVersionUID = 1;
}

View File

@@ -0,0 +1,8 @@
package com.amazonaws.services.cognitoidentity.model;
import com.amazonaws.AmazonServiceException;
/* loaded from: classes.dex */
public abstract class ResourceConflictException extends AmazonServiceException {
private static final long serialVersionUID = 1;
}

View File

@@ -0,0 +1,8 @@
package com.amazonaws.services.cognitoidentity.model;
import com.amazonaws.AmazonServiceException;
/* loaded from: classes.dex */
public abstract class ResourceNotFoundException extends AmazonServiceException {
private static final long serialVersionUID = 1;
}

View File

@@ -0,0 +1,8 @@
package com.amazonaws.services.cognitoidentity.model;
import com.amazonaws.AmazonServiceException;
/* loaded from: classes.dex */
public abstract class TooManyRequestsException extends AmazonServiceException {
private static final long serialVersionUID = 1;
}

View File

@@ -0,0 +1,25 @@
package com.amazonaws.services.cognitoidentity.model.transform;
import com.amazonaws.AmazonServiceException;
import com.amazonaws.handlers.HandlerChainFactory$$ExternalSyntheticThrowCCEIfNotNull0;
import com.amazonaws.http.JsonErrorResponseHandler;
import com.amazonaws.services.cognitoidentity.model.ConcurrentModificationException;
import com.amazonaws.transform.JsonErrorUnmarshaller;
/* loaded from: classes.dex */
public class ConcurrentModificationExceptionUnmarshaller extends JsonErrorUnmarshaller {
public ConcurrentModificationExceptionUnmarshaller() {
super(ConcurrentModificationException.class);
}
@Override // com.amazonaws.transform.JsonErrorUnmarshaller
public boolean match(JsonErrorResponseHandler.JsonErrorResponse jsonErrorResponse) {
return jsonErrorResponse.getErrorCode().equals("ConcurrentModificationException");
}
@Override // com.amazonaws.transform.JsonErrorUnmarshaller, com.amazonaws.transform.Unmarshaller
public AmazonServiceException unmarshall(JsonErrorResponseHandler.JsonErrorResponse jsonErrorResponse) {
HandlerChainFactory$$ExternalSyntheticThrowCCEIfNotNull0.m(super.unmarshall(jsonErrorResponse));
throw null;
}
}

View File

@@ -0,0 +1,47 @@
package com.amazonaws.services.cognitoidentity.model.transform;
import com.amazonaws.services.cognitoidentity.model.Credentials;
import com.amazonaws.transform.JsonUnmarshallerContext;
import com.amazonaws.transform.SimpleTypeJsonUnmarshallers$DateJsonUnmarshaller;
import com.amazonaws.transform.SimpleTypeJsonUnmarshallers$StringJsonUnmarshaller;
import com.amazonaws.transform.Unmarshaller;
import com.amazonaws.util.json.AwsJsonReader;
/* loaded from: classes.dex */
class CredentialsJsonUnmarshaller implements Unmarshaller<Credentials, JsonUnmarshallerContext> {
public static CredentialsJsonUnmarshaller instance;
@Override // com.amazonaws.transform.Unmarshaller
public Credentials unmarshall(JsonUnmarshallerContext jsonUnmarshallerContext) {
AwsJsonReader reader = jsonUnmarshallerContext.getReader();
if (!reader.isContainer()) {
reader.skipValue();
return null;
}
Credentials credentials = new Credentials();
reader.beginObject();
while (reader.hasNext()) {
String nextName = reader.nextName();
if (nextName.equals("AccessKeyId")) {
credentials.setAccessKeyId(SimpleTypeJsonUnmarshallers$StringJsonUnmarshaller.getInstance().unmarshall(jsonUnmarshallerContext));
} else if (nextName.equals("SecretKey")) {
credentials.setSecretKey(SimpleTypeJsonUnmarshallers$StringJsonUnmarshaller.getInstance().unmarshall(jsonUnmarshallerContext));
} else if (nextName.equals("SessionToken")) {
credentials.setSessionToken(SimpleTypeJsonUnmarshallers$StringJsonUnmarshaller.getInstance().unmarshall(jsonUnmarshallerContext));
} else if (nextName.equals("Expiration")) {
credentials.setExpiration(SimpleTypeJsonUnmarshallers$DateJsonUnmarshaller.getInstance().unmarshall(jsonUnmarshallerContext));
} else {
reader.skipValue();
}
}
reader.endObject();
return credentials;
}
public static CredentialsJsonUnmarshaller getInstance() {
if (instance == null) {
instance = new CredentialsJsonUnmarshaller();
}
return instance;
}
}

View File

@@ -0,0 +1,25 @@
package com.amazonaws.services.cognitoidentity.model.transform;
import com.amazonaws.AmazonServiceException;
import com.amazonaws.handlers.HandlerChainFactory$$ExternalSyntheticThrowCCEIfNotNull0;
import com.amazonaws.http.JsonErrorResponseHandler;
import com.amazonaws.services.cognitoidentity.model.DeveloperUserAlreadyRegisteredException;
import com.amazonaws.transform.JsonErrorUnmarshaller;
/* loaded from: classes.dex */
public class DeveloperUserAlreadyRegisteredExceptionUnmarshaller extends JsonErrorUnmarshaller {
public DeveloperUserAlreadyRegisteredExceptionUnmarshaller() {
super(DeveloperUserAlreadyRegisteredException.class);
}
@Override // com.amazonaws.transform.JsonErrorUnmarshaller
public boolean match(JsonErrorResponseHandler.JsonErrorResponse jsonErrorResponse) {
return jsonErrorResponse.getErrorCode().equals("DeveloperUserAlreadyRegisteredException");
}
@Override // com.amazonaws.transform.JsonErrorUnmarshaller, com.amazonaws.transform.Unmarshaller
public AmazonServiceException unmarshall(JsonErrorResponseHandler.JsonErrorResponse jsonErrorResponse) {
HandlerChainFactory$$ExternalSyntheticThrowCCEIfNotNull0.m(super.unmarshall(jsonErrorResponse));
throw null;
}
}

View File

@@ -0,0 +1,25 @@
package com.amazonaws.services.cognitoidentity.model.transform;
import com.amazonaws.AmazonServiceException;
import com.amazonaws.handlers.HandlerChainFactory$$ExternalSyntheticThrowCCEIfNotNull0;
import com.amazonaws.http.JsonErrorResponseHandler;
import com.amazonaws.services.cognitoidentity.model.ExternalServiceException;
import com.amazonaws.transform.JsonErrorUnmarshaller;
/* loaded from: classes.dex */
public class ExternalServiceExceptionUnmarshaller extends JsonErrorUnmarshaller {
public ExternalServiceExceptionUnmarshaller() {
super(ExternalServiceException.class);
}
@Override // com.amazonaws.transform.JsonErrorUnmarshaller
public boolean match(JsonErrorResponseHandler.JsonErrorResponse jsonErrorResponse) {
return jsonErrorResponse.getErrorCode().equals("ExternalServiceException");
}
@Override // com.amazonaws.transform.JsonErrorUnmarshaller, com.amazonaws.transform.Unmarshaller
public AmazonServiceException unmarshall(JsonErrorResponseHandler.JsonErrorResponse jsonErrorResponse) {
HandlerChainFactory$$ExternalSyntheticThrowCCEIfNotNull0.m(super.unmarshall(jsonErrorResponse));
throw null;
}
}

View File

@@ -0,0 +1,67 @@
package com.amazonaws.services.cognitoidentity.model.transform;
import com.amazonaws.AmazonClientException;
import com.amazonaws.DefaultRequest;
import com.amazonaws.Request;
import com.amazonaws.http.HttpMethodName;
import com.amazonaws.services.cognitoidentity.model.GetCredentialsForIdentityRequest;
import com.amazonaws.util.StringInputStream;
import com.amazonaws.util.StringUtils;
import com.amazonaws.util.json.AwsJsonWriter;
import com.amazonaws.util.json.JsonUtils;
import java.io.StringWriter;
import java.util.Map;
import org.apache.http.protocol.HTTP;
/* loaded from: classes.dex */
public class GetCredentialsForIdentityRequestMarshaller {
public Request marshall(GetCredentialsForIdentityRequest getCredentialsForIdentityRequest) {
if (getCredentialsForIdentityRequest == null) {
throw new AmazonClientException("Invalid argument passed to marshall(GetCredentialsForIdentityRequest)");
}
DefaultRequest defaultRequest = new DefaultRequest(getCredentialsForIdentityRequest, "AmazonCognitoIdentity");
defaultRequest.addHeader("X-Amz-Target", "AWSCognitoIdentityService.GetCredentialsForIdentity");
defaultRequest.setHttpMethod(HttpMethodName.POST);
defaultRequest.setResourcePath("/");
try {
StringWriter stringWriter = new StringWriter();
AwsJsonWriter jsonWriter = JsonUtils.getJsonWriter(stringWriter);
jsonWriter.beginObject();
if (getCredentialsForIdentityRequest.getIdentityId() != null) {
String identityId = getCredentialsForIdentityRequest.getIdentityId();
jsonWriter.name("IdentityId");
jsonWriter.value(identityId);
}
if (getCredentialsForIdentityRequest.getLogins() != null) {
Map logins = getCredentialsForIdentityRequest.getLogins();
jsonWriter.name("Logins");
jsonWriter.beginObject();
for (Map.Entry entry : logins.entrySet()) {
String str = (String) entry.getValue();
if (str != null) {
jsonWriter.name((String) entry.getKey());
jsonWriter.value(str);
}
}
jsonWriter.endObject();
}
if (getCredentialsForIdentityRequest.getCustomRoleArn() != null) {
String customRoleArn = getCredentialsForIdentityRequest.getCustomRoleArn();
jsonWriter.name("CustomRoleArn");
jsonWriter.value(customRoleArn);
}
jsonWriter.endObject();
jsonWriter.close();
String stringWriter2 = stringWriter.toString();
byte[] bytes = stringWriter2.getBytes(StringUtils.UTF8);
defaultRequest.setContent(new StringInputStream(stringWriter2));
defaultRequest.addHeader(HTTP.CONTENT_LEN, Integer.toString(bytes.length));
if (!defaultRequest.getHeaders().containsKey("Content-Type")) {
defaultRequest.addHeader("Content-Type", "application/x-amz-json-1.1");
}
return defaultRequest;
} catch (Throwable th) {
throw new AmazonClientException("Unable to marshall request to JSON: " + th.getMessage(), th);
}
}
}

View File

@@ -0,0 +1,29 @@
package com.amazonaws.services.cognitoidentity.model.transform;
import com.amazonaws.services.cognitoidentity.model.GetCredentialsForIdentityResult;
import com.amazonaws.transform.JsonUnmarshallerContext;
import com.amazonaws.transform.SimpleTypeJsonUnmarshallers$StringJsonUnmarshaller;
import com.amazonaws.transform.Unmarshaller;
import com.amazonaws.util.json.AwsJsonReader;
/* loaded from: classes.dex */
public class GetCredentialsForIdentityResultJsonUnmarshaller implements Unmarshaller<GetCredentialsForIdentityResult, JsonUnmarshallerContext> {
@Override // com.amazonaws.transform.Unmarshaller
public GetCredentialsForIdentityResult unmarshall(JsonUnmarshallerContext jsonUnmarshallerContext) {
GetCredentialsForIdentityResult getCredentialsForIdentityResult = new GetCredentialsForIdentityResult();
AwsJsonReader reader = jsonUnmarshallerContext.getReader();
reader.beginObject();
while (reader.hasNext()) {
String nextName = reader.nextName();
if (nextName.equals("IdentityId")) {
getCredentialsForIdentityResult.setIdentityId(SimpleTypeJsonUnmarshallers$StringJsonUnmarshaller.getInstance().unmarshall(jsonUnmarshallerContext));
} else if (nextName.equals("Credentials")) {
getCredentialsForIdentityResult.setCredentials(CredentialsJsonUnmarshaller.getInstance().unmarshall(jsonUnmarshallerContext));
} else {
reader.skipValue();
}
}
reader.endObject();
return getCredentialsForIdentityResult;
}
}

View File

@@ -0,0 +1,67 @@
package com.amazonaws.services.cognitoidentity.model.transform;
import com.amazonaws.AmazonClientException;
import com.amazonaws.DefaultRequest;
import com.amazonaws.Request;
import com.amazonaws.http.HttpMethodName;
import com.amazonaws.services.cognitoidentity.model.GetIdRequest;
import com.amazonaws.util.StringInputStream;
import com.amazonaws.util.StringUtils;
import com.amazonaws.util.json.AwsJsonWriter;
import com.amazonaws.util.json.JsonUtils;
import java.io.StringWriter;
import java.util.Map;
import org.apache.http.protocol.HTTP;
/* loaded from: classes.dex */
public class GetIdRequestMarshaller {
public Request marshall(GetIdRequest getIdRequest) {
if (getIdRequest == null) {
throw new AmazonClientException("Invalid argument passed to marshall(GetIdRequest)");
}
DefaultRequest defaultRequest = new DefaultRequest(getIdRequest, "AmazonCognitoIdentity");
defaultRequest.addHeader("X-Amz-Target", "AWSCognitoIdentityService.GetId");
defaultRequest.setHttpMethod(HttpMethodName.POST);
defaultRequest.setResourcePath("/");
try {
StringWriter stringWriter = new StringWriter();
AwsJsonWriter jsonWriter = JsonUtils.getJsonWriter(stringWriter);
jsonWriter.beginObject();
if (getIdRequest.getAccountId() != null) {
String accountId = getIdRequest.getAccountId();
jsonWriter.name("AccountId");
jsonWriter.value(accountId);
}
if (getIdRequest.getIdentityPoolId() != null) {
String identityPoolId = getIdRequest.getIdentityPoolId();
jsonWriter.name("IdentityPoolId");
jsonWriter.value(identityPoolId);
}
if (getIdRequest.getLogins() != null) {
Map logins = getIdRequest.getLogins();
jsonWriter.name("Logins");
jsonWriter.beginObject();
for (Map.Entry entry : logins.entrySet()) {
String str = (String) entry.getValue();
if (str != null) {
jsonWriter.name((String) entry.getKey());
jsonWriter.value(str);
}
}
jsonWriter.endObject();
}
jsonWriter.endObject();
jsonWriter.close();
String stringWriter2 = stringWriter.toString();
byte[] bytes = stringWriter2.getBytes(StringUtils.UTF8);
defaultRequest.setContent(new StringInputStream(stringWriter2));
defaultRequest.addHeader(HTTP.CONTENT_LEN, Integer.toString(bytes.length));
if (!defaultRequest.getHeaders().containsKey("Content-Type")) {
defaultRequest.addHeader("Content-Type", "application/x-amz-json-1.1");
}
return defaultRequest;
} catch (Throwable th) {
throw new AmazonClientException("Unable to marshall request to JSON: " + th.getMessage(), th);
}
}
}

View File

@@ -0,0 +1,26 @@
package com.amazonaws.services.cognitoidentity.model.transform;
import com.amazonaws.services.cognitoidentity.model.GetIdResult;
import com.amazonaws.transform.JsonUnmarshallerContext;
import com.amazonaws.transform.SimpleTypeJsonUnmarshallers$StringJsonUnmarshaller;
import com.amazonaws.transform.Unmarshaller;
import com.amazonaws.util.json.AwsJsonReader;
/* loaded from: classes.dex */
public class GetIdResultJsonUnmarshaller implements Unmarshaller<GetIdResult, JsonUnmarshallerContext> {
@Override // com.amazonaws.transform.Unmarshaller
public GetIdResult unmarshall(JsonUnmarshallerContext jsonUnmarshallerContext) {
GetIdResult getIdResult = new GetIdResult();
AwsJsonReader reader = jsonUnmarshallerContext.getReader();
reader.beginObject();
while (reader.hasNext()) {
if (reader.nextName().equals("IdentityId")) {
getIdResult.setIdentityId(SimpleTypeJsonUnmarshallers$StringJsonUnmarshaller.getInstance().unmarshall(jsonUnmarshallerContext));
} else {
reader.skipValue();
}
}
reader.endObject();
return getIdResult;
}
}

View File

@@ -0,0 +1,62 @@
package com.amazonaws.services.cognitoidentity.model.transform;
import com.amazonaws.AmazonClientException;
import com.amazonaws.DefaultRequest;
import com.amazonaws.Request;
import com.amazonaws.http.HttpMethodName;
import com.amazonaws.services.cognitoidentity.model.GetOpenIdTokenRequest;
import com.amazonaws.util.StringInputStream;
import com.amazonaws.util.StringUtils;
import com.amazonaws.util.json.AwsJsonWriter;
import com.amazonaws.util.json.JsonUtils;
import java.io.StringWriter;
import java.util.Map;
import org.apache.http.protocol.HTTP;
/* loaded from: classes.dex */
public class GetOpenIdTokenRequestMarshaller {
public Request marshall(GetOpenIdTokenRequest getOpenIdTokenRequest) {
if (getOpenIdTokenRequest == null) {
throw new AmazonClientException("Invalid argument passed to marshall(GetOpenIdTokenRequest)");
}
DefaultRequest defaultRequest = new DefaultRequest(getOpenIdTokenRequest, "AmazonCognitoIdentity");
defaultRequest.addHeader("X-Amz-Target", "AWSCognitoIdentityService.GetOpenIdToken");
defaultRequest.setHttpMethod(HttpMethodName.POST);
defaultRequest.setResourcePath("/");
try {
StringWriter stringWriter = new StringWriter();
AwsJsonWriter jsonWriter = JsonUtils.getJsonWriter(stringWriter);
jsonWriter.beginObject();
if (getOpenIdTokenRequest.getIdentityId() != null) {
String identityId = getOpenIdTokenRequest.getIdentityId();
jsonWriter.name("IdentityId");
jsonWriter.value(identityId);
}
if (getOpenIdTokenRequest.getLogins() != null) {
Map logins = getOpenIdTokenRequest.getLogins();
jsonWriter.name("Logins");
jsonWriter.beginObject();
for (Map.Entry entry : logins.entrySet()) {
String str = (String) entry.getValue();
if (str != null) {
jsonWriter.name((String) entry.getKey());
jsonWriter.value(str);
}
}
jsonWriter.endObject();
}
jsonWriter.endObject();
jsonWriter.close();
String stringWriter2 = stringWriter.toString();
byte[] bytes = stringWriter2.getBytes(StringUtils.UTF8);
defaultRequest.setContent(new StringInputStream(stringWriter2));
defaultRequest.addHeader(HTTP.CONTENT_LEN, Integer.toString(bytes.length));
if (!defaultRequest.getHeaders().containsKey("Content-Type")) {
defaultRequest.addHeader("Content-Type", "application/x-amz-json-1.1");
}
return defaultRequest;
} catch (Throwable th) {
throw new AmazonClientException("Unable to marshall request to JSON: " + th.getMessage(), th);
}
}
}

View File

@@ -0,0 +1,29 @@
package com.amazonaws.services.cognitoidentity.model.transform;
import com.amazonaws.services.cognitoidentity.model.GetOpenIdTokenResult;
import com.amazonaws.transform.JsonUnmarshallerContext;
import com.amazonaws.transform.SimpleTypeJsonUnmarshallers$StringJsonUnmarshaller;
import com.amazonaws.transform.Unmarshaller;
import com.amazonaws.util.json.AwsJsonReader;
/* loaded from: classes.dex */
public class GetOpenIdTokenResultJsonUnmarshaller implements Unmarshaller<GetOpenIdTokenResult, JsonUnmarshallerContext> {
@Override // com.amazonaws.transform.Unmarshaller
public GetOpenIdTokenResult unmarshall(JsonUnmarshallerContext jsonUnmarshallerContext) {
GetOpenIdTokenResult getOpenIdTokenResult = new GetOpenIdTokenResult();
AwsJsonReader reader = jsonUnmarshallerContext.getReader();
reader.beginObject();
while (reader.hasNext()) {
String nextName = reader.nextName();
if (nextName.equals("IdentityId")) {
getOpenIdTokenResult.setIdentityId(SimpleTypeJsonUnmarshallers$StringJsonUnmarshaller.getInstance().unmarshall(jsonUnmarshallerContext));
} else if (nextName.equals("Token")) {
getOpenIdTokenResult.setToken(SimpleTypeJsonUnmarshallers$StringJsonUnmarshaller.getInstance().unmarshall(jsonUnmarshallerContext));
} else {
reader.skipValue();
}
}
reader.endObject();
return getOpenIdTokenResult;
}
}

View File

@@ -0,0 +1,25 @@
package com.amazonaws.services.cognitoidentity.model.transform;
import com.amazonaws.AmazonServiceException;
import com.amazonaws.handlers.HandlerChainFactory$$ExternalSyntheticThrowCCEIfNotNull0;
import com.amazonaws.http.JsonErrorResponseHandler;
import com.amazonaws.services.cognitoidentity.model.InternalErrorException;
import com.amazonaws.transform.JsonErrorUnmarshaller;
/* loaded from: classes.dex */
public class InternalErrorExceptionUnmarshaller extends JsonErrorUnmarshaller {
public InternalErrorExceptionUnmarshaller() {
super(InternalErrorException.class);
}
@Override // com.amazonaws.transform.JsonErrorUnmarshaller
public boolean match(JsonErrorResponseHandler.JsonErrorResponse jsonErrorResponse) {
return jsonErrorResponse.getErrorCode().equals("InternalErrorException");
}
@Override // com.amazonaws.transform.JsonErrorUnmarshaller, com.amazonaws.transform.Unmarshaller
public AmazonServiceException unmarshall(JsonErrorResponseHandler.JsonErrorResponse jsonErrorResponse) {
HandlerChainFactory$$ExternalSyntheticThrowCCEIfNotNull0.m(super.unmarshall(jsonErrorResponse));
throw null;
}
}

View File

@@ -0,0 +1,25 @@
package com.amazonaws.services.cognitoidentity.model.transform;
import com.amazonaws.AmazonServiceException;
import com.amazonaws.handlers.HandlerChainFactory$$ExternalSyntheticThrowCCEIfNotNull0;
import com.amazonaws.http.JsonErrorResponseHandler;
import com.amazonaws.services.cognitoidentity.model.InvalidIdentityPoolConfigurationException;
import com.amazonaws.transform.JsonErrorUnmarshaller;
/* loaded from: classes.dex */
public class InvalidIdentityPoolConfigurationExceptionUnmarshaller extends JsonErrorUnmarshaller {
public InvalidIdentityPoolConfigurationExceptionUnmarshaller() {
super(InvalidIdentityPoolConfigurationException.class);
}
@Override // com.amazonaws.transform.JsonErrorUnmarshaller
public boolean match(JsonErrorResponseHandler.JsonErrorResponse jsonErrorResponse) {
return jsonErrorResponse.getErrorCode().equals("InvalidIdentityPoolConfigurationException");
}
@Override // com.amazonaws.transform.JsonErrorUnmarshaller, com.amazonaws.transform.Unmarshaller
public AmazonServiceException unmarshall(JsonErrorResponseHandler.JsonErrorResponse jsonErrorResponse) {
HandlerChainFactory$$ExternalSyntheticThrowCCEIfNotNull0.m(super.unmarshall(jsonErrorResponse));
throw null;
}
}

View File

@@ -0,0 +1,25 @@
package com.amazonaws.services.cognitoidentity.model.transform;
import com.amazonaws.AmazonServiceException;
import com.amazonaws.handlers.HandlerChainFactory$$ExternalSyntheticThrowCCEIfNotNull0;
import com.amazonaws.http.JsonErrorResponseHandler;
import com.amazonaws.services.cognitoidentity.model.InvalidParameterException;
import com.amazonaws.transform.JsonErrorUnmarshaller;
/* loaded from: classes.dex */
public class InvalidParameterExceptionUnmarshaller extends JsonErrorUnmarshaller {
public InvalidParameterExceptionUnmarshaller() {
super(InvalidParameterException.class);
}
@Override // com.amazonaws.transform.JsonErrorUnmarshaller
public boolean match(JsonErrorResponseHandler.JsonErrorResponse jsonErrorResponse) {
return jsonErrorResponse.getErrorCode().equals("InvalidParameterException");
}
@Override // com.amazonaws.transform.JsonErrorUnmarshaller, com.amazonaws.transform.Unmarshaller
public AmazonServiceException unmarshall(JsonErrorResponseHandler.JsonErrorResponse jsonErrorResponse) {
HandlerChainFactory$$ExternalSyntheticThrowCCEIfNotNull0.m(super.unmarshall(jsonErrorResponse));
throw null;
}
}

View File

@@ -0,0 +1,25 @@
package com.amazonaws.services.cognitoidentity.model.transform;
import com.amazonaws.AmazonServiceException;
import com.amazonaws.handlers.HandlerChainFactory$$ExternalSyntheticThrowCCEIfNotNull0;
import com.amazonaws.http.JsonErrorResponseHandler;
import com.amazonaws.services.cognitoidentity.model.LimitExceededException;
import com.amazonaws.transform.JsonErrorUnmarshaller;
/* loaded from: classes.dex */
public class LimitExceededExceptionUnmarshaller extends JsonErrorUnmarshaller {
public LimitExceededExceptionUnmarshaller() {
super(LimitExceededException.class);
}
@Override // com.amazonaws.transform.JsonErrorUnmarshaller
public boolean match(JsonErrorResponseHandler.JsonErrorResponse jsonErrorResponse) {
return jsonErrorResponse.getErrorCode().equals("LimitExceededException");
}
@Override // com.amazonaws.transform.JsonErrorUnmarshaller, com.amazonaws.transform.Unmarshaller
public AmazonServiceException unmarshall(JsonErrorResponseHandler.JsonErrorResponse jsonErrorResponse) {
HandlerChainFactory$$ExternalSyntheticThrowCCEIfNotNull0.m(super.unmarshall(jsonErrorResponse));
throw null;
}
}

View File

@@ -0,0 +1,25 @@
package com.amazonaws.services.cognitoidentity.model.transform;
import com.amazonaws.AmazonServiceException;
import com.amazonaws.handlers.HandlerChainFactory$$ExternalSyntheticThrowCCEIfNotNull0;
import com.amazonaws.http.JsonErrorResponseHandler;
import com.amazonaws.services.cognitoidentity.model.NotAuthorizedException;
import com.amazonaws.transform.JsonErrorUnmarshaller;
/* loaded from: classes.dex */
public class NotAuthorizedExceptionUnmarshaller extends JsonErrorUnmarshaller {
public NotAuthorizedExceptionUnmarshaller() {
super(NotAuthorizedException.class);
}
@Override // com.amazonaws.transform.JsonErrorUnmarshaller
public boolean match(JsonErrorResponseHandler.JsonErrorResponse jsonErrorResponse) {
return jsonErrorResponse.getErrorCode().equals("NotAuthorizedException");
}
@Override // com.amazonaws.transform.JsonErrorUnmarshaller, com.amazonaws.transform.Unmarshaller
public AmazonServiceException unmarshall(JsonErrorResponseHandler.JsonErrorResponse jsonErrorResponse) {
HandlerChainFactory$$ExternalSyntheticThrowCCEIfNotNull0.m(super.unmarshall(jsonErrorResponse));
throw null;
}
}

View File

@@ -0,0 +1,25 @@
package com.amazonaws.services.cognitoidentity.model.transform;
import com.amazonaws.AmazonServiceException;
import com.amazonaws.handlers.HandlerChainFactory$$ExternalSyntheticThrowCCEIfNotNull0;
import com.amazonaws.http.JsonErrorResponseHandler;
import com.amazonaws.services.cognitoidentity.model.ResourceConflictException;
import com.amazonaws.transform.JsonErrorUnmarshaller;
/* loaded from: classes.dex */
public class ResourceConflictExceptionUnmarshaller extends JsonErrorUnmarshaller {
public ResourceConflictExceptionUnmarshaller() {
super(ResourceConflictException.class);
}
@Override // com.amazonaws.transform.JsonErrorUnmarshaller
public boolean match(JsonErrorResponseHandler.JsonErrorResponse jsonErrorResponse) {
return jsonErrorResponse.getErrorCode().equals("ResourceConflictException");
}
@Override // com.amazonaws.transform.JsonErrorUnmarshaller, com.amazonaws.transform.Unmarshaller
public AmazonServiceException unmarshall(JsonErrorResponseHandler.JsonErrorResponse jsonErrorResponse) {
HandlerChainFactory$$ExternalSyntheticThrowCCEIfNotNull0.m(super.unmarshall(jsonErrorResponse));
throw null;
}
}

View File

@@ -0,0 +1,25 @@
package com.amazonaws.services.cognitoidentity.model.transform;
import com.amazonaws.AmazonServiceException;
import com.amazonaws.handlers.HandlerChainFactory$$ExternalSyntheticThrowCCEIfNotNull0;
import com.amazonaws.http.JsonErrorResponseHandler;
import com.amazonaws.services.cognitoidentity.model.ResourceNotFoundException;
import com.amazonaws.transform.JsonErrorUnmarshaller;
/* loaded from: classes.dex */
public class ResourceNotFoundExceptionUnmarshaller extends JsonErrorUnmarshaller {
public ResourceNotFoundExceptionUnmarshaller() {
super(ResourceNotFoundException.class);
}
@Override // com.amazonaws.transform.JsonErrorUnmarshaller
public boolean match(JsonErrorResponseHandler.JsonErrorResponse jsonErrorResponse) {
return jsonErrorResponse.getErrorCode().equals("ResourceNotFoundException");
}
@Override // com.amazonaws.transform.JsonErrorUnmarshaller, com.amazonaws.transform.Unmarshaller
public AmazonServiceException unmarshall(JsonErrorResponseHandler.JsonErrorResponse jsonErrorResponse) {
HandlerChainFactory$$ExternalSyntheticThrowCCEIfNotNull0.m(super.unmarshall(jsonErrorResponse));
throw null;
}
}

View File

@@ -0,0 +1,25 @@
package com.amazonaws.services.cognitoidentity.model.transform;
import com.amazonaws.AmazonServiceException;
import com.amazonaws.handlers.HandlerChainFactory$$ExternalSyntheticThrowCCEIfNotNull0;
import com.amazonaws.http.JsonErrorResponseHandler;
import com.amazonaws.services.cognitoidentity.model.TooManyRequestsException;
import com.amazonaws.transform.JsonErrorUnmarshaller;
/* loaded from: classes.dex */
public class TooManyRequestsExceptionUnmarshaller extends JsonErrorUnmarshaller {
public TooManyRequestsExceptionUnmarshaller() {
super(TooManyRequestsException.class);
}
@Override // com.amazonaws.transform.JsonErrorUnmarshaller
public boolean match(JsonErrorResponseHandler.JsonErrorResponse jsonErrorResponse) {
return jsonErrorResponse.getErrorCode().equals("TooManyRequestsException");
}
@Override // com.amazonaws.transform.JsonErrorUnmarshaller, com.amazonaws.transform.Unmarshaller
public AmazonServiceException unmarshall(JsonErrorResponseHandler.JsonErrorResponse jsonErrorResponse) {
HandlerChainFactory$$ExternalSyntheticThrowCCEIfNotNull0.m(super.unmarshall(jsonErrorResponse));
throw null;
}
}