E2EIEnrollment

class E2EIEnrollment(delegate: <Error class: unknown class>)

Represents an E2EI enrollment

Constructors

Link copied to clipboard
constructor(delegate: <Error class: unknown class>)

Functions

Link copied to clipboard
suspend fun accountResponse(account: JsonRawData): <Error class: unknown class>

Parses the response from POST /acme/{provisioner-name}/new-account.

Link copied to clipboard
suspend fun authzResponse(authz: JsonRawData): <Error class: unknown class>

Parses the response from POST /acme/{provisioner-name}/authz/{authz-id}

Link copied to clipboard
suspend fun certificateRequest(previousNonce: String): <Error class: unknown class>

Creates a request for finally fetching the x509 certificate.

Link copied to clipboard
suspend fun checkOrderRequest(orderUrl: String, previousNonce: String): <Error class: unknown class>

Verifies that the previous challenge has been completed.

Link copied to clipboard
suspend fun checkOrderResponse(order: JsonRawData): <Error class: unknown class>

Parses the response from POST /acme/{provisioner-name}/order/{order-id}.

Link copied to clipboard
suspend fun contextOidcChallengeResponse(challenge: JsonRawData): <Error class: unknown class>

Parses the response from POST /acme/{provisioner-name}/challenge/{challenge-id} for OIDC challenge within a CoreCryptoContext.

Link copied to clipboard
suspend fun createDpopToken(expirySecs: UInt, backendNonce: String): <Error class: unknown class>

Generates a new client Dpop JWT token. It demonstrates proof of possession of the nonces (from wire-server & acme server) and will be verified by the acme server when verifying the challenge (in order to deliver a certificate).

Link copied to clipboard
suspend fun directoryResponse(directory: JsonRawData): <Error class: unknown class>

Parses the response from GET /acme/{provisioner-name}/directory. Use this AcmeDirectory in the next step to fetch the first nonce from the acme server. Use AcmeDirectory.newNonce.

Link copied to clipboard
suspend fun dpopChallengeResponse(challenge: JsonRawData): <Error class: unknown class>

Parses the response from POST /acme/{provisioner-name}/challenge/{challenge-id} for DPoP challenge.

Link copied to clipboard
suspend fun finalizeRequest(previousNonce: String): <Error class: unknown class>

Final step before fetching the certificate.

Link copied to clipboard
suspend fun finalizeResponse(finalize: JsonRawData): <Error class: unknown class>

Parses the response from POST /acme/{provisioner-name}/order/{order-id}/finalize.

Link copied to clipboard
suspend fun newAccountRequest(previousNonce: String): <Error class: unknown class>

For creating a new acme account. This returns a signed JWS-alike request body to send to POST /acme/{provisioner-name}/new-account.

Link copied to clipboard
suspend fun newAuthzRequest(url: String, previousNonce: String): <Error class: unknown class>

Creates a new authorization request.

Link copied to clipboard
suspend fun newDpopChallengeRequest(accessToken: String, previousNonce: String): <Error class: unknown class>

Creates a new challenge request for Wire Dpop challenge.

Link copied to clipboard
suspend fun newOidcChallengeRequest(idToken: String, previousNonce: String): <Error class: unknown class>

Creates a new challenge request for Wire Oidc challenge.

Link copied to clipboard
suspend fun newOrderRequest(previousNonce: String): <Error class: unknown class>

Creates a new acme order for the handle (userId + display name) and the clientId.

Link copied to clipboard
suspend fun newOrderResponse(order: JsonRawData): <Error class: unknown class>

Parses the response from POST /acme/{provisioner-name}/new-order.