public interface TokenClient extends AutoCloseable
Modifier and Type | Method and Description |
---|---|
void |
close()
An implementation of
AutoCloseable that does not throw any checked exceptions. |
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.
|
GetAccessTokenResponse getAccessTokenFromServicePrincipal(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.GetAccessTokenResponse getAccessTokenFromServicePrincipal(String servicePrincipalKey, AccessKey accessKey, String scope)
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.void close()
AutoCloseable
that does not throw any checked exceptions.
close
in interface AutoCloseable
Copyright © 2024. All rights reserved.