Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Policy

Package version

Class representing a Policy.

Hierarchy

  • Policy

Index

Constructors

Methods

Constructors

constructor

Methods

get

  • Retrieves the current policy for an attestation type.

    Parameters

    • attestationType: AttestationType

      Specifies the trusted execution environment to be used to validate the evidence

    • Optional options: coreHttp.OperationOptions

      The options parameters.

    Returns Promise<PolicyGetResponse>

reset

  • Resets the attestation policy for the specified tenant and reverts to the default policy.

    Parameters

    • attestationType: AttestationType

      Specifies the trusted execution environment to be used to validate the evidence

    • policyJws: string

      JSON Web Signature with an empty policy document

    • Optional options: coreHttp.OperationOptions

      The options parameters.

    Returns Promise<PolicyResetResponse>

set

  • Sets the policy for a given attestation type.

    Parameters

    • attestationType: AttestationType

      Specifies the trusted execution environment to be used to validate the evidence

    • newAttestationPolicy: string

      JWT Expressing the new policy whose body is a StoredAttestationPolicy object.

    • Optional options: coreHttp.OperationOptions

      The options parameters.

    Returns Promise<PolicySetModelResponse>

Generated using TypeDoc