com.starkinfra.User Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sdk Show documentation
Show all versions of sdk Show documentation
Welcome to the Stark Infra Java SDK! This tool is made for Java developers who want to easily integrate with our API. This SDK version is compatible with the Stark Infra API v2.
package com.starkinfra;
import com.starkinfra.utils.Check;
import com.starkinfra.utils.Resource;
import com.starkbank.ellipticcurve.PrivateKey;
public abstract class User extends Resource{
public final String pem;
public final String environment;
public User(String environment, String id, String privateKey) throws Exception {
super(id);
this.environment = Check.environment(environment);
this.pem = Check.key(privateKey);
}
public abstract String accessId();
public PrivateKey privateKey(){
return PrivateKey.fromPem(this.pem);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy