LcpPassphraseAuthentication

An LcpAuthenticating implementation which can directly use a provided clear or hashed passphrase.

If the provided passphrase is incorrect, the given fallback authentication is used.

Constructors

Link copied to clipboard
constructor(passphrase: String, fallback: LcpAuthenticating? = null)

Functions

Link copied to clipboard
open suspend override fun retrievePassphrase(license: LcpAuthenticating.AuthenticatedLicense, reason: LcpAuthenticating.AuthenticationReason, allowUserInteraction: Boolean): String?

Retrieves the passphrase used to decrypt the given license.