public class RestPkiClient
extends java.lang.Object
Constructor and Description |
---|
RestPkiClient(java.lang.String endpointUrl,
java.lang.String authToken)
Create a new instance of the class passing the URL for the REST PKI API and the access token to be used
for authenticating with the service.
|
RestPkiClient(java.lang.String endpointUrl,
java.lang.String authToken,
java.net.Proxy proxy)
Create a new instance of the class passing the URL for the REST PKI API and the access token to be used
for authenticating with the service, using a proxy for communication.
|
Modifier and Type | Method and Description |
---|---|
Authentication |
getAuthentication() |
java.lang.String |
getAuthToken() |
java.lang.String |
getEndpointUrl() |
boolean |
getMultipartUploadDoubleCheck() |
int |
getMultipartUploadThreshold() |
com.lacunasoftware.restpki.Version |
getRestPkiVersion() |
void |
setMultipartUploadDoubleCheck(boolean multipartUploadDoubleCheck) |
void |
setMultipartUploadThreshold(int multipartUploadThreshold) |
void |
setRestPkiVersion(com.lacunasoftware.restpki.Version restPkiVersion) |
public RestPkiClient(java.lang.String endpointUrl, java.lang.String authToken)
If you do not have an access token, you can get one on the REST PKI website.
endpointUrl
- The URL for the REST PKI API, terminated in a slash (/), for instance "https://restpki.lacunasoftware.com/" (this might be different if you are using a on-premises instance).authToken
- The access token to be used for authenticating with the service.public RestPkiClient(java.lang.String endpointUrl, java.lang.String authToken, java.net.Proxy proxy)
If you do not have an access token, you can get one on the REST PKI website.
endpointUrl
- The URL for the REST PKI API, terminated in a slash (/), for instance "https://restpki.lacunasoftware.com/" (this might be different if you are using a on-premises instance).authToken
- The access token to be used for authenticating with the service.proxy
- The proxy settings to be used for communication.public java.lang.String getEndpointUrl()
public java.lang.String getAuthToken()
public boolean getMultipartUploadDoubleCheck()
public void setMultipartUploadDoubleCheck(boolean multipartUploadDoubleCheck)
public int getMultipartUploadThreshold()
public void setMultipartUploadThreshold(int multipartUploadThreshold)
public com.lacunasoftware.restpki.Version getRestPkiVersion()
public void setRestPkiVersion(com.lacunasoftware.restpki.Version restPkiVersion)
public Authentication getAuthentication()