Skip to content

Instantly share code, notes, and snippets.

View tstahl's full-sized avatar

Ty Stahl tstahl

View GitHub Profile
@tstahl
tstahl / pom.xml
Last active September 14, 2023 21:07
<dependency>
<groupId>com.oracle.oci.sdk</groupId>
<artifactId>oci-java-sdk-common</artifactId>
<version>3.21.0</version>
<exclusions>
<exclusion>
<groupId>org.bouncycastle</groupId>
<artifactId>*</artifactId>
</exclusion>
</exclusions>
@tstahl
tstahl / GenerateUpst.java
Last active May 24, 2023 20:43
GenerateUPSTClass
public class GenerateUpst {
private static final String CONFIG_FILE_PATH = "/function/app/config";
//THIS IS THE EPHEMERAL PUBLIC KEY FOR REQUEST SIGNING
// private static final String PUBLIC_KEY = "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEArh1dTq2GdgxQEMziN8GouiVO/ytWQ9B/lQIsASYydd1PV33/tlO1FNX3ohLg3oYcja8+bDqjAAC7PRCBgEUc7+RYzM5wO6rbIS/hllczhkkLJ/9zn/ril+/+ayl4piWtmRXENq4+GBTteusqHHYI1G3a67m5w8AqX/oa9Jwj99SUPyibLwxMZS0zS5pbtWHHBhexvJfzl/unb0Y+5ZY+mEDbEs7FxyFJGm9VDIK0eMaAf22moXx1hRa0L3yYxXEr7ek2XBOfAafWS+7AHUxGMeZsX+vS5YkTsApfgKKDHwpsAgIraqL7djWTzcs8NsRJ6fZUKQjDsj4SC70OjW96fwIDAQAB";
private static final String DEMO_API_KEY_PROFILE = "UPSTJPN";
private static final String ENCRYPTION_ALGORTIHM = "RSA";