AttestationPolicyToken interface
An AttestationPolicyToken represents an AttestationToken which holds an attestation policy document.
When the attestation service receives a set policy request, the payload of the set policy token contains a JSON Web Signature whose body contains the actual attestation policy document.
The AttestationPolicyToken represents this JWS object.
- Extends
Inherited Properties
algorithm | Returns the algorithm from the header of the JSON Web Signature. See RFC 7515 Section 4.1.1) for details. If the value of algorithm is "none" it indicates that the token is unsecured. |
certificate |
Json Web Token Header "x509 certificate chain". |
certificate |
Json Web Token Header "x509 SHA256 thumprint". |
certificate |
Json Web Token Header "x509 thumprint". See RFC 7515 Section 4.1.7) |
content |
Json Web Token Header "content type". See RFC 7515 Section 4.1.10) |
critical | Json Web Signature Header "crit". See RFC 7515 Section 4.1.11) for details. |
expires |
Expiration time for the token, from JWT body. See RFC 7519 Section 4.1.4) for details. |
issued |
Issuance time for the token, from JWT body. See RFC 7519 Section 4.1.6) for details. |
issuer | Issuer of the attestation token. See RFC 7519 Section 4.1.6) for details. |
key |
Json Web Signature Header "kid". See RFC 7515 Section 4.1.4) for details. |
key |
Json Web Token Header "key URL". |
not |
Not Before time for the token, from JWT body. See RFC 7519 Section 4.1.5) for details. |
type | Json Web Token Header "Typ". |
x509Url | Json Web Token Header "X509 Url". |
Inherited Methods
get |
Returns the deserialized body of the AttestationToken object. |
get |
Validates the attestation token to verify that it is semantically correct. |
serialize() | the token to a string. |
Inherited Property Details
algorithm
Returns the algorithm from the header of the JSON Web Signature.
See RFC 7515 Section 4.1.1) for details.
If the value of algorithm is "none" it indicates that the token is unsecured.
algorithm: string
Property Value
string
Inherited From AttestationToken.algorithm
certificateChain
Json Web Token Header "x509 certificate chain".
certificateChain?: AttestationSigner
Property Value
Inherited From AttestationToken.certificateChain
certificateSha256Thumbprint
Json Web Token Header "x509 SHA256 thumprint".
certificateSha256Thumbprint?: string
Property Value
string
Inherited From AttestationToken.certificateSha256Thumbprint
certificateThumbprint
Json Web Token Header "x509 thumprint". See RFC 7515 Section 4.1.7)
certificateThumbprint?: string
Property Value
string
Inherited From AttestationToken.certificateThumbprint
contentType
Json Web Token Header "content type". See RFC 7515 Section 4.1.10)
contentType?: string
Property Value
string
Inherited From AttestationToken.contentType
critical
Json Web Signature Header "crit".
See RFC 7515 Section 4.1.11) for details.
critical?: boolean
Property Value
boolean
Inherited From AttestationToken.critical
expiresOn
Expiration time for the token, from JWT body.
See RFC 7519 Section 4.1.4) for details.
expiresOn?: Date
Property Value
Date
Inherited From AttestationToken.expiresOn
issuedAt
Issuance time for the token, from JWT body.
See RFC 7519 Section 4.1.6) for details.
issuedAt?: Date
Property Value
Date
Inherited From AttestationToken.issuedAt
issuer
Issuer of the attestation token. See RFC 7519 Section 4.1.6) for details.
issuer?: string
Property Value
string
Inherited From AttestationToken.issuer
keyId
Json Web Signature Header "kid". See RFC 7515 Section 4.1.4) for details.
keyId?: string
Property Value
string
Inherited From AttestationToken.keyId
keyUrl
Json Web Token Header "key URL".
keyUrl?: string
Property Value
string
Inherited From AttestationToken.keyUrl
notBefore
Not Before time for the token, from JWT body.
See RFC 7519 Section 4.1.5) for details.
notBefore?: Date
Property Value
Date
Inherited From AttestationToken.notBefore
type
Json Web Token Header "Typ".
type?: string
Property Value
string
Inherited From AttestationToken.type
x509Url
Json Web Token Header "X509 Url".
x509Url?: string
Property Value
string
Inherited From AttestationToken.x509Url
Inherited Method Details
getBody()
Returns the deserialized body of the AttestationToken object.
function getBody(): unknown
Returns
unknown
The body of the attestation token as an object.
Inherited From AttestationToken.getBody
getTokenProblems(AttestationSigner[], AttestationTokenValidationOptions)
Validates the attestation token to verify that it is semantically correct.
function getTokenProblems(possibleSigners?: AttestationSigner[], options?: AttestationTokenValidationOptions): string[]
Parameters
- possibleSigners
the set of possible signers for this attestation token.
validation options
Returns
string[]
Inherited From AttestationToken.getTokenProblems
serialize()
the token to a string.
function serialize(): string
Returns
string
The token serialized to a RFC 7515 JSON Web Signature.
Remarks
Serializes the token to a string.
Inherited From AttestationToken.serialize