Class AttestationPolicySetOptions

java.lang.Object
com.azure.security.attestation.models.AttestationPolicySetOptions

public final class AttestationPolicySetOptions extends Object

AttestationPolicySetOptions represent the parameters sent to the AttestationAdministrationClient.getAttestationPolicy(AttestationType) or AttestationAdministrationClient.getAttestationPolicyWithResponse(AttestationType, AttestationTokenValidationOptions, Context) API.

Each AttestationPolicySetOptions object expresses the options to verify the response from the attestation service.

  • Constructor Details

    • AttestationPolicySetOptions

      public AttestationPolicySetOptions()
  • Method Details

    • setValidationOptions

      public AttestationPolicySetOptions setValidationOptions(AttestationTokenValidationOptions validationOptions)
      Sets the options used to validate attestation tokens returned from the service.
      Parameters:
      validationOptions - Token Validation options to be used to enhance the validations already performed by the SDK.
      Returns:
      this AttestationPolicySetOptions object.
    • getValidationOptions

      public AttestationTokenValidationOptions getValidationOptions()
      Returns the options used for token validation.
      Returns:
      attestation token validation options.
    • getAttestationPolicy

      public String getAttestationPolicy()
      Gets the attestation policy which will be used to generate a policy set request.
      Returns:
      Attestation Policy Token associated with this request.
    • setAttestationPolicy

      public AttestationPolicySetOptions setAttestationPolicy(String policy)
      Sets the attestation policy which will be used to generate a policy set request.
      Parameters:
      policy - Attestation Token to be set.
      Returns:
      This AttestationPolicySetOptions.
    • getAttestationSigner

      public AttestationSigningKey getAttestationSigner()
      Gets the attestation signer which will be used to sign a policy set request.
      Returns:
      Attestation Signer associated with this request.
    • setAttestationSigner

      public AttestationPolicySetOptions setAttestationSigner(AttestationSigningKey signer)
      Sets the attestation signer which will be used to generate a policy set request.
      Parameters:
      signer - Signer for the set Policy request.
      Returns:
      This AttestationPolicySetOptions.