Skip to content

Commit

Permalink
Support creating GCP Oidc attestation
Browse files Browse the repository at this point in the history
  • Loading branch information
lunwang-ttd committed Jul 20, 2023
1 parent ceee06b commit 2ea7118
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/main/java/com/uid2/shared/attest/AttestationFactory.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@ public static IAttestationProvider getGcpVmidAttestation() throws Exception {
return (IAttestationProvider) c.newInstance();
}

public static IAttestationProvider getGcpOidcAttestation() throws Exception {
Class<?> cls = Class.forName("com.uid2.attestation.gcp.OidcAttestationProvider");
Constructor<?> c = cls.getConstructor();
return (IAttestationProvider) c.newInstance();
}

public static IAttestationProvider getAzureAttestation() throws Exception {
Class<?> cls = Class.forName("com.uid2.attestation.azure.AzureAttestationProvider");
Constructor<?> c = cls.getConstructor();
Expand Down

0 comments on commit 2ea7118

Please sign in to comment.