// RevokeAuthorization relinquishes an existing authorization identified
// by the given URL.
// The url argument is an Authorization.URI value.
//
// If successful, the caller will be required to obtain a new authorization
// using the Authorize method before being able to request a new certificate
// for the domain associated with the authorization.
//
// It does not revoke existing certificates.
RevokeAuthorization relinquishes an existing authorization identified
by the given URL.
The url argument is an Authorization.URI value.

If successful, the caller will be required to obtain a new authorization
using the Authorize method before being able to request a new certificate
for the domain associated with the authorization.

It does not revoke existing certificates.
// RevokeAuthorization relinquishes an existing authorization identified // by the given URL . // The url argument is an Authorization . URI value . // // If successful the caller will be required to obtain a new authorization // using the Authorize method before being able to request a new certificate // for the domain associated with the authorization . // // It does not revoke existing certificates .
func (c *Client) RevokeAuthorization(ctx context.Context, url string) error {
	req := struct {
		Resource string `json:"resource"`
		Status   string `json:"status"`
		Delete   bool   `json:"delete"`
	}{
		Resource: "authz",
		Status:   "deactivated",
		Delete:   true,
	}
	res, err := c.postJWS(ctx, c.Key, url, req)
	if err != nil {
		return err
	}
	defer res.Body.Close()
	if res.StatusCode != http.StatusOK {
		return responseError(res)
	}
	return nil
}
func ( c * Client ) RevokeAuthorization ( ctx context . Context , url string ) error { req := struct { Resource string `json:"resource"` Status string `json:"status"` Delete bool `json:"delete"` } { Resource : " " , Status : " " , Delete : true , } res , err := c . postJWS ( ctx , c . Key , url , req ) if err != nil { return err } defer res . Body . Close ( ) if res . StatusCode != http . StatusOK { return responseError ( res ) } return nil }
RevokeAuthorization relinquishes an existing authorization identified
by the given URL.
RevokeAuthorization relinquishes an existing authorization identified by the given URL .