Skip to content

Commit

Permalink
add cred model
Browse files Browse the repository at this point in the history
  • Loading branch information
Thumimku committed Nov 19, 2023
1 parent e4ac4ec commit 37b2100
Show file tree
Hide file tree
Showing 2 changed files with 166 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,15 @@
</instructions>
</configuration>
</plugin>
<!-- Class AndroidAttestationServiceCredentials not following checkstyle format for parameter name
due to Google Service Account JSON key format. Hence adding checkstyle skip-->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>findbugs-maven-plugin</artifactId>
Expand Down
Original file line number Diff line number Diff line change
@@ -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 <a href="https://developers.google.com/workspace/guides/create-credentials"> Create access credentials </a>}
*/
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;
}
}

0 comments on commit 37b2100

Please sign in to comment.