Package version:
OptionalexpectedThe expected issuer for the AttestationToken. Only checked if validateIssuer is set.
OptionaltimeTolerance time (in seconds) used to accound for clock drift between the local machine and the server creating the token.
OptionalvalidateValidation function which allows developers to provide their own validation functionality for the attestation token. This can be used to perform additional validations for signing certificate in AttestationSigner.
Attestation Token to validate.
Optionalsigner: AttestationSigner
Signing Certificate which validated the token.
an array of problems in the token, or undefined if there are no problems.
OptionalvalidateIf true, validate the expiration time for the token.
OptionalvalidateIf true, validate the issuer of the token.
OptionalvalidateIf true, validate the "not before" time for the token.
OptionalvalidateIf true, validate the attestation token, if false, skip validation,
including validateAttestationToken. Defaults to true.
Options used to validate attestation tokens.
Typeparam
issuer - if provided, specifies the expected issuer of the attestation token.
Typeparam
validateExpirationTime - if true, validate the expiration time in the token.
Typeparam
validateNotBeforeTime - if true, validate the "not before" time in the token.
Typeparam
validateToken - if true, validate the token.
Typeparam
timeValidationSlack - the validation time slack in the time based validations.
Remarks
If no validation options are provided, validateToken, validateExpirationTime, and validateNotBeforeTime are all true. If validation options are provided (for the clients, on the client or on the operation), an omitted validateToken is still true, but an omitted validateExpirationTime or validateNotBeforeTime is false, so that time is not checked.