public class TokenClientUtils extends Object
Modifier and Type | Method and Description |
---|---|
static String |
createBearer(String servicePrincipalKey,
AccessKey accessKey)
Given a service principal key and an access key, return a string representation of the Bearer header.
|
static String |
decodeBase64(String encoded)
Convert a base64 encoded string to plain text
|
static Map<String,String> |
getHeadersMap(kong.unirest.HttpResponse httpResponse) |
static String |
getOAuthApiBaseUri(String domain)
Given a Laserfiche domain, such as laserfiche.ca, returns the base URL for OAuth.
|
public static String getOAuthApiBaseUri(String domain)
domain
- The Laserfiche domain, for example, laserfiche.ca.public static String createBearer(String servicePrincipalKey, AccessKey accessKey)
servicePrincipalKey
- The service principal key created for the service principal from the Laserfiche Account Administration.accessKey
- The access key exported from the Laserfiche Developer Console.public static String decodeBase64(String encoded)
encoded
- Base64 encoded inputCopyright © 2024. All rights reserved.