public final class PolicyClient extends Object
Modifier and Type | Method and Description |
---|---|
PolicyResponse |
get(AttestationType attestationType)
Retrieves the current policy for an attestation type.
|
Response<PolicyResponse> |
getWithResponse(AttestationType attestationType,
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.
|
Response<PolicyResponse> |
resetWithResponse(AttestationType attestationType,
String policyJws,
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.
|
Response<PolicyResponse> |
setWithResponse(AttestationType attestationType,
String newAttestationPolicy,
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.HttpResponseException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.public Response<PolicyResponse> getWithResponse(AttestationType attestationType, 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.HttpResponseException
- 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.HttpResponseException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.public Response<PolicyResponse> setWithResponse(AttestationType attestationType, String newAttestationPolicy, 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.HttpResponseException
- 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.HttpResponseException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.public Response<PolicyResponse> resetWithResponse(AttestationType attestationType, String policyJws, 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.HttpResponseException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.Copyright © 2021. All rights reserved.