public final class PolicyCertificatesClient extends Object
Modifier and Type | Method and Description |
---|---|
PolicyCertificatesModifyResponse |
add(String policyCertificateToAdd)
Adds a new attestation policy certificate to the set of policy management certificates.
|
com.azure.core.http.rest.Response<PolicyCertificatesModifyResponse> |
addWithResponse(String policyCertificateToAdd,
com.azure.core.util.Context context)
Adds a new attestation policy certificate to the set of policy management certificates.
|
PolicyCertificatesResponse |
get()
Retrieves the set of certificates used to express policy for the current tenant.
|
com.azure.core.http.rest.Response<PolicyCertificatesResponse> |
getWithResponse(com.azure.core.util.Context context)
Retrieves the set of certificates used to express policy for the current tenant.
|
PolicyCertificatesModifyResponse |
remove(String policyCertificateToRemove)
Removes the specified policy management certificate.
|
com.azure.core.http.rest.Response<PolicyCertificatesModifyResponse> |
removeWithResponse(String policyCertificateToRemove,
com.azure.core.util.Context context)
Removes the specified policy management certificate.
|
public PolicyCertificatesResponse get()
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<PolicyCertificatesResponse> getWithResponse(com.azure.core.util.Context context)
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 PolicyCertificatesModifyResponse add(String policyCertificateToAdd)
policyCertificateToAdd
- An RFC 7519 Json Web Token.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<PolicyCertificatesModifyResponse> addWithResponse(String policyCertificateToAdd, com.azure.core.util.Context context)
policyCertificateToAdd
- An RFC 7519 Json Web Token.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 PolicyCertificatesModifyResponse remove(String policyCertificateToRemove)
policyCertificateToRemove
- An RFC 7519 Json Web Token.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<PolicyCertificatesModifyResponse> removeWithResponse(String policyCertificateToRemove, com.azure.core.util.Context context)
policyCertificateToRemove
- An RFC 7519 Json Web Token.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.