public final class PolicyClient extends Object
Modifier and Type | Method and Description |
---|---|
PolicyResponse |
get(AttestationType attestationType)
Retrieves the current policy for an attestation type.
|
com.azure.core.http.rest.Response<PolicyResponse> |
getWithResponse(AttestationType attestationType,
com.azure.core.util.Context context)
Retrieves the current policy for an attestation type.
|
PolicyResponse |
reset(AttestationType attestationType,
String policyJws)
Resets the attestation policy for the specified tenant and reverts to the default policy.
|
com.azure.core.http.rest.Response<PolicyResponse> |
resetWithResponse(AttestationType attestationType,
String policyJws,
com.azure.core.util.Context context)
Resets the attestation policy for the specified tenant and reverts to the default policy.
|
PolicyResponse |
set(AttestationType attestationType,
String newAttestationPolicy)
Sets the policy for a given attestation type.
|
com.azure.core.http.rest.Response<PolicyResponse> |
setWithResponse(AttestationType attestationType,
String newAttestationPolicy,
com.azure.core.util.Context context)
Sets the policy for a given attestation type.
|
public PolicyResponse get(AttestationType attestationType)
attestationType
- Specifies the trusted execution environment to be used to validate the evidence.IllegalArgumentException
- thrown if parameters fail the validation.CloudErrorException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.public com.azure.core.http.rest.Response<PolicyResponse> getWithResponse(AttestationType attestationType, com.azure.core.util.Context context)
attestationType
- Specifies the trusted execution environment to be used to validate the evidence.context
- The context to associate with this operation.IllegalArgumentException
- thrown if parameters fail the validation.CloudErrorException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.public PolicyResponse set(AttestationType attestationType, String newAttestationPolicy)
attestationType
- Specifies the trusted execution environment to be used to validate the evidence.newAttestationPolicy
- simple string.IllegalArgumentException
- thrown if parameters fail the validation.CloudErrorException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.public com.azure.core.http.rest.Response<PolicyResponse> setWithResponse(AttestationType attestationType, String newAttestationPolicy, com.azure.core.util.Context context)
attestationType
- Specifies the trusted execution environment to be used to validate the evidence.newAttestationPolicy
- simple string.context
- The context to associate with this operation.IllegalArgumentException
- thrown if parameters fail the validation.CloudErrorException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.public PolicyResponse reset(AttestationType attestationType, String policyJws)
attestationType
- Specifies the trusted execution environment to be used to validate the evidence.policyJws
- simple string.IllegalArgumentException
- thrown if parameters fail the validation.CloudErrorException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.public com.azure.core.http.rest.Response<PolicyResponse> resetWithResponse(AttestationType attestationType, String policyJws, com.azure.core.util.Context context)
attestationType
- Specifies the trusted execution environment to be used to validate the evidence.policyJws
- simple string.context
- The context to associate with this operation.IllegalArgumentException
- thrown if parameters fail the validation.CloudErrorException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.Copyright © 2021 Microsoft Corporation. All rights reserved.