adobe.pdfservices.operation.internal.auth package

Submodules

adobe.pdfservices.operation.internal.auth.auth_factory module

class adobe.pdfservices.operation.internal.auth.auth_factory.AuthenticatorFactory

Bases: object

static get_authenticator(credential: Credentials, client_config: ClientConfig)

adobe.pdfservices.operation.internal.auth.authenticator module

class adobe.pdfservices.operation.internal.auth.authenticator.Authenticator

Bases: ABC

abstract get_api_key()
abstract refresh_token()
abstract session_token()

adobe.pdfservices.operation.internal.auth.service_principal_authenticator module

class adobe.pdfservices.operation.internal.auth.service_principal_authenticator.ServicePrincipalAuthenticator(service_principal_configuration, client_config)

Bases: Authenticator

Authenticator for OAuth Server-to-Server based Service Principal credentials

get_api_key()

API key for Service Principle credentials

handle_ims_failure(response)

Handling of IMS failure during call to PDF Services API

refresh_token()

Refreshes the access token sent to PDF Services API

service_principal_configuration: ServicePrincipalCredentials
session_token()

Access token for the PDF Services API

time_to_expire()

Time remaining in minutes till token expiry

token: SessionToken = None
token_endpoint = ''

adobe.pdfservices.operation.internal.auth.service_token_authenticator module

class adobe.pdfservices.operation.internal.auth.service_token_authenticator.ServiceTokenAuthenticator(service_token_credentials: ServiceTokenCredentials)

Bases: Authenticator

get_api_key() str
refresh_token() SessionToken
session_token() SessionToken

adobe.pdfservices.operation.internal.auth.service_token_credentials module

class adobe.pdfservices.operation.internal.auth.service_token_credentials.ServiceTokenCredentials(client_id: str, token: str)

Bases: Credentials

get_client_id()
get_token()
set_client_id(client_id)
set_token(token)

adobe.pdfservices.operation.internal.auth.session_token module

class adobe.pdfservices.operation.internal.auth.session_token.SessionToken(access_token, expired_in_ms)

Bases: object

expired_at: datetime

Module contents