AuthTokenGenerator
class AuthTokenGenerator(val service: String, val credentialsProvider: <Error class: unknown class>, val signer: AwsSigner, val clock: <Error class: unknown class> = Clock.System)
Generates an authentication token, which is a SigV4-signed URL with the HTTP scheme removed.
Parameters
service
The name of the service the token is being generated for
credentialsProvider
The CredentialsProvider which will provide credentials to use when generating the auth token
signer
The AwsSigner implementation to use when creating the authentication token
clock
The Clock implementation to use
Functions
Link copied to clipboard
suspend fun generateAuthToken(endpoint: <Error class: unknown class>, region: String, expiration: <Error class: unknown class>): String