PolicyManagementCertificateOptions Class

  • java.lang.Object
    • com.azure.security.attestation.models.PolicyManagementCertificateOptions

public final class PolicyManagementCertificateOptions

AttestationPolicySetOptions represent the parameters sent to the addPolicyManagementCertificate(PolicyManagementCertificateOptions options) or deletePolicyManagementCertificate(PolicyManagementCertificateOptions options) API.

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

Constructor Summary

Constructor Description
PolicyManagementCertificateOptions(X509Certificate certificate, AttestationSigningKey signingKey)

Creates a new PolicyManagementCertificateOptions.

Method Summary

Modifier and Type Method and Description
AttestationSigningKey getAttestationSigner()

Gets the attestation signer which will be used to sign a policy set request.

X509Certificate getCertificate()

Gets the attestation policy which will be used to generate a policy set request.

AttestationTokenValidationOptions getValidationOptions()

Returns the options used for token validation.

PolicyManagementCertificateOptions setValidationOptions(AttestationTokenValidationOptions validationOptions)

Sets the options used to validate attestation tokens returned from the service.

Methods inherited from java.lang.Object

Constructor Details

PolicyManagementCertificateOptions

public PolicyManagementCertificateOptions(X509Certificate certificate, AttestationSigningKey signingKey)

Creates a new PolicyManagementCertificateOptions.

Parameters:

certificate - Specifies the X.509 certificate to add or remove to the set of policy management certificates.
signingKey - Specifies the signing key which will be used to sign the request for the attestation service.

Method Details

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.

getCertificate

public X509Certificate getCertificate()

Gets the attestation policy which will be used to generate a policy set request.

Returns:

Attestation Policy Token associated with this request.

getValidationOptions

public AttestationTokenValidationOptions getValidationOptions()

Returns the options used for token validation.

Returns:

attestation token validation options.

setValidationOptions

public PolicyManagementCertificateOptions 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:

Applies to