public final class PolicyAsyncClient extends Object
Modifier and Type | Method and Description |
---|---|
Mono<PolicyResponse> |
get(AttestationType attestationType)
Retrieves the current policy for an attestation type.
|
Mono<Response<PolicyResponse>> |
getWithResponse(AttestationType attestationType)
Retrieves the current policy for an attestation type.
|
Mono<PolicyResponse> |
reset(AttestationType attestationType,
String policyJws)
Resets the attestation policy for the specified tenant and reverts to the default policy.
|
Mono<Response<PolicyResponse>> |
resetWithResponse(AttestationType attestationType,
String policyJws)
Resets the attestation policy for the specified tenant and reverts to the default policy.
|
Mono<PolicyResponse> |
set(AttestationType attestationType,
String newAttestationPolicy)
Sets the policy for a given attestation type.
|
Mono<Response<PolicyResponse>> |
setWithResponse(AttestationType attestationType,
String newAttestationPolicy)
Sets the policy for a given attestation type.
|
public Mono<Response<PolicyResponse>> getWithResponse(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 Mono<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 Mono<Response<PolicyResponse>> setWithResponse(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 Mono<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 Mono<Response<PolicyResponse>> resetWithResponse(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 Mono<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.Copyright © 2021. All rights reserved.