public class TokenClientImpl extends BaseTokenClient implements TokenClient
httpClient, objectMapper
Constructor and Description |
---|
TokenClientImpl(String regionalDomain)
Creates a new Laserfiche Cloud token route API client.
|
Modifier and Type | Method and Description |
---|---|
GetAccessTokenResponse |
getAccessTokenFromServicePrincipal(String servicePrincipalKey,
AccessKey accessKey)
Gets an OAuth access token given a Laserfiche Cloud service principal key and an OAuth service application access key.
|
GetAccessTokenResponse |
getAccessTokenFromServicePrincipal(String servicePrincipalKey,
AccessKey accessKey,
String scope)
Gets an OAuth access token given a Laserfiche Cloud service principal key and an OAuth service application access key.
|
close
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close
public TokenClientImpl(String regionalDomain)
regionalDomain
- Laserfiche Cloud domain associated with the access key, e.g. laserfiche.com.public GetAccessTokenResponse getAccessTokenFromServicePrincipal(String servicePrincipalKey, AccessKey accessKey)
TokenClient
getAccessTokenFromServicePrincipal
in interface TokenClient
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 GetAccessTokenResponse getAccessTokenFromServicePrincipal(String servicePrincipalKey, AccessKey accessKey, String scope)
TokenClient
getAccessTokenFromServicePrincipal
in interface TokenClient
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.scope
- The requested space-delimited scopes for the access token.Copyright © 2024. All rights reserved.