Class AttestationPolicySetOptions
java.lang.Object
com.azure.security.attestation.models.AttestationPolicySetOptions
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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionGets the attestation policy which will be used to generate a policy set request.Gets the attestation signer which will be used to sign a policy set request.Returns the options used for token validation.setAttestationPolicy
(String policy) Sets the attestation policy which will be used to generate a policy set request.Sets the attestation signer which will be used to generate a policy set request.setValidationOptions
(AttestationTokenValidationOptions validationOptions) Sets the options used to validate attestation tokens returned from the 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
Returns the options used for token validation.- Returns:
- attestation token validation options.
-
getAttestationPolicy
Gets the attestation policy which will be used to generate a policy set request.- Returns:
- Attestation Policy Token associated with this request.
-
setAttestationPolicy
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
Gets the attestation signer which will be used to sign a policy set request.- Returns:
- Attestation Signer associated with this request.
-
setAttestationSigner
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
.
-