All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.starkinfra.User Maven / Gradle / Ivy

Go to download

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.

There is a newer version: 0.11.2
Show newest version
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