From 37b210086031ded0c5c893d31986195f8fd75a3b Mon Sep 17 00:00:00 2001 From: Thumimku Date: Sun, 19 Nov 2023 12:05:31 +0530 Subject: [PATCH] add cred model --- .../pom.xml | 9 + .../AndroidAttestationServiceCredentials.java | 157 ++++++++++++++++++ 2 files changed, 166 insertions(+) create mode 100644 components/client-attestation-mgt/org.wso2.carbon.identity.client.attestation.mgt/src/main/java/org/wso2/carbon/identity/client/attestation/mgt/model/AndroidAttestationServiceCredentials.java diff --git a/components/client-attestation-mgt/org.wso2.carbon.identity.client.attestation.mgt/pom.xml b/components/client-attestation-mgt/org.wso2.carbon.identity.client.attestation.mgt/pom.xml index 52cb5b6d3090..6cecc914a6ff 100644 --- a/components/client-attestation-mgt/org.wso2.carbon.identity.client.attestation.mgt/pom.xml +++ b/components/client-attestation-mgt/org.wso2.carbon.identity.client.attestation.mgt/pom.xml @@ -177,6 +177,15 @@ + + + org.apache.maven.plugins + maven-checkstyle-plugin + + true + + org.codehaus.mojo findbugs-maven-plugin diff --git a/components/client-attestation-mgt/org.wso2.carbon.identity.client.attestation.mgt/src/main/java/org/wso2/carbon/identity/client/attestation/mgt/model/AndroidAttestationServiceCredentials.java b/components/client-attestation-mgt/org.wso2.carbon.identity.client.attestation.mgt/src/main/java/org/wso2/carbon/identity/client/attestation/mgt/model/AndroidAttestationServiceCredentials.java new file mode 100644 index 000000000000..89842db3253e --- /dev/null +++ b/components/client-attestation-mgt/org.wso2.carbon.identity.client.attestation.mgt/src/main/java/org/wso2/carbon/identity/client/attestation/mgt/model/AndroidAttestationServiceCredentials.java @@ -0,0 +1,157 @@ +/* + * Copyright (c) 2023, WSO2 LLC. (http://www.wso2.com). + * + * WSO2 LLC. licenses this file to you under the Apache License, + * Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + * + */ + +package org.wso2.carbon.identity.client.attestation.mgt.model; + +/** + * Represents credentials for Google Service Account attestation service. + * This class encapsulates the authentication information required by the Android attestation service. + * Each field corresponds to a specific piece of information needed for authentication. + * For more info on Service Account credentials check, + * visit Create access credentials } + */ +public class AndroidAttestationServiceCredentials { + + private String type; + private String project_id; + private String private_key_id; + private String private_key; + private String client_email; + private String client_id; + private String auth_uri; + private String token_uri; + private String auth_provider_x509_cert_url; + private String client_x509_cert_url; + private String universe_domain; + + public AndroidAttestationServiceCredentials() { + + } + + public String getType() { + + return type; + } + + public void setType(String type) { + + this.type = type; + } + + public String getProject_id() { + + return project_id; + } + + public void setProject_id(String project_id) { + + this.project_id = project_id; + } + + public String getPrivate_key_id() { + + return private_key_id; + } + + public void setPrivate_key_id(String private_key_id) { + + this.private_key_id = private_key_id; + } + + public String getPrivate_key() { + + return private_key; + } + + public void setPrivate_key(String private_key) { + + this.private_key = private_key; + } + + public String getClient_email() { + + return client_email; + } + + public void setClient_email(String client_email) { + + this.client_email = client_email; + } + + public String getClient_id() { + + return client_id; + } + + public void setClient_id(String client_id) { + + this.client_id = client_id; + } + + public String getAuth_uri() { + + return auth_uri; + } + + public void setAuth_uri(String auth_uri) { + + this.auth_uri = auth_uri; + } + + public String getToken_uri() { + + return token_uri; + } + + public void setToken_uri(String token_uri) { + + this.token_uri = token_uri; + } + + public String getAuth_provider_x509_cert_url() { + + return auth_provider_x509_cert_url; + } + + public void setAuth_provider_x509_cert_url(String auth_provider_x509_cert_url) { + + this.auth_provider_x509_cert_url = auth_provider_x509_cert_url; + } + + public String getClient_x509_cert_url() { + + return client_x509_cert_url; + } + + public void setClient_x509_cert_url(String client_x509_cert_url) { + + this.client_x509_cert_url = client_x509_cert_url; + } + + public String getUniverse_domain() { + + return universe_domain; + } + + public void setUniverse_domain(String universe_domain) { + + this.universe_domain = universe_domain; + } +} +