Interface SigningApi


  • @Path("/_matrix/identity/api/v1")
    @Consumes("application/json")
    @Produces("application/json")
    public interface SigningApi
    To aid clients who may not be able to perform crypto themselves, the identity server offers some crypto functionality to help in accepting invitations. This is less secure than the client doing it itself, but may be useful where this isn't possible.
    • Method Summary

      Modifier and Type Method Description
      void sign​(SigningRequest request, javax.ws.rs.core.UriInfo uriInfo, javax.ws.rs.core.HttpHeaders httpHeaders, javax.ws.rs.container.AsyncResponse asyncResponse)
      Sign invitation details.
    • Method Detail

      • sign

        @POST
        @Path("/sign-ed25519")
        void sign​(SigningRequest request,
                  @Context
                  javax.ws.rs.core.UriInfo uriInfo,
                  @Context
                  javax.ws.rs.core.HttpHeaders httpHeaders,
                  @Suspended
                  javax.ws.rs.container.AsyncResponse asyncResponse)
        Sign invitation details.
        The identity server will look up token which was stored in a call to store-invite, and fetch the sender of the invite.
        Return: SigningResponse.

        Status code 200: The signed JSON of the mxid, sender, and token.

        Status code 404: The token was not found.

        Parameters:
        request - JSON body request.
        uriInfo - Request information.
        httpHeaders - Http headers.
        asyncResponse - Asynchronous response.