Class PolicyManagementCertificateOptions
java.lang.Object
com.azure.security.attestation.models.PolicyManagementCertificateOptions
AttestationPolicySetOptions represent the parameters sent to the
AttestationAdministrationClient.addPolicyManagementCertificate(PolicyManagementCertificateOptions)
or AttestationAdministrationClient.deletePolicyManagementCertificate(PolicyManagementCertificateOptions)
API.
Each AttestationPolicySetOptions
object expresses the options to verify the response
from the attestation service.
-
Constructor Summary
ConstructorDescriptionPolicyManagementCertificateOptions
(X509Certificate certificate, AttestationSigningKey signingKey) Creates a newPolicyManagementCertificateOptions
. -
Method Summary
Modifier and TypeMethodDescriptionGets the attestation signer which will be used to sign a policy set request.Gets the attestation policy which will be used to generate a policy set request.Returns the options used for token validation.setValidationOptions
(AttestationTokenValidationOptions validationOptions) Sets the options used to validate attestation tokens returned from the service.
-
Constructor Details
-
PolicyManagementCertificateOptions
public PolicyManagementCertificateOptions(X509Certificate certificate, AttestationSigningKey signingKey) Creates a newPolicyManagementCertificateOptions
.- 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
-
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:
- this
AttestationPolicySetOptions
object.
-
getValidationOptions
Returns the options used for token validation.- Returns:
- attestation token validation options.
-
getCertificate
Gets the attestation policy which will be used to generate a policy set request.- Returns:
- Attestation Policy Token associated with this request.
-
getAttestationSigner
Gets the attestation signer which will be used to sign a policy set request.- Returns:
- Attestation Signer associated with this request.
-