FakeLogHook

Fake implementation of LogHook for testing.

Stores the last values passed to each logging method. A new instance should be created for each test.

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
var certSerialNumbers: <Error class: unknown class>
Link copied to clipboard
var infoMessages: <Error class: unknown class>
Link copied to clipboard
var inputChain: <Error class: unknown class>
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open override fun logCertSerialNumbers(certSerialNumbers: List<String>)

Logs the serial numbers of the intermediate certificates in the certificate chain. Called if verify reaches the point where the certificate chain is parsed.

Link copied to clipboard
open override fun logInfoMessage(infoMessage: String)

Logs an info level message. May be called throughout the verification process.

Link copied to clipboard
open override fun logInputChain(inputChain: List<ByteString>)

Logs the certificate chain which is being verified. Called for each call to verify.

Link copied to clipboard
open override fun logKeyDescription(keyDescription: KeyDescription)

Logs the key description of the leaf certificate. Called if verify reaches the point where the key description is parsed.

Link copied to clipboard
open override fun logProvisioningInfoMap(provisioningInfoMap: ProvisioningInfoMap)

Logs the provisioning info map extension of the attestation certificate. Called if verify reaches the point where the provisioning info map is parsed, if present in the attestation certificate.

Link copied to clipboard
open override fun logResult(result: VerificationResult)

Logs the result of the verification. Called for each call to verify.