AttestationToken Class
Represents a token returned from the attestation service.
If the signing_key and signing_certificate properties are not specified, the token created is unsecured.
- Inheritance
-
builtins.objectAttestationToken
Constructor
AttestationToken(**kwargs)
Keyword-Only Parameters
Name | Description |
---|---|
body
|
The body of the newly created token, if provided. |
signing_key
|
If specified, the PEM encoded key used to sign the token. |
signing_certificate
|
If specified, the PEM encoded certificate used to sign the token. |
token
|
If no body or signer is provided, the string representation of the token. |
Methods
to_jwt_string |
Returns a string serializing the JSON Web Token |
to_jwt_string
Attributes
algorithm
Json Web Token Header "alg".
See RFC 7515 Section 4.1.1 for details.
If the value of algorithm is "none" it indicates that the token is unsecured.
certificate_sha256_thumbprint
The "thumbprint" of the certificate used to sign the request generated using the SHA256 algorithm.
RFC 7515 Section 4.1.8 for details.
certificate_thumbprint
The "thumbprint" of the certificate used to sign the request.
RFC 7515 Section 4.1.7 for details.
content_type
Json Web Token Header "content type".
See RFC 7515 Section 4.1.10 for details.
critical
Json Web Token Header "Critical".
See RFC 7515 Section 4.1.11 for details.
expires
Expiration time for the token.
issued
Time when the token was issued.
issuer
Json Web Token "iss" claim.
RFC 7519 Section 4.1.1 for details.
key_id
Json Web Token Header "kid".
See RFC 7515 Section 4.1.4 for details.
key_url
Json Web Token Header "Key URL".
See RFC 7515 Section 4.1.2 for details.
not_before
Time before which the token is invalid.
type
Json Web Token Header "typ".
RFC 7515 Section 4.1.9 for details.
x509_certificate_chain
An array of Base64 encoded X.509 certificates which represent a certificate chain used to sign the token.
See RFC 7515 Section 4.1.6 for details.
x509_url
Json Web Token Header "X509 URL".
See RFC 7515 Section 4.1.5 for details.
Azure SDK for Python