ServiceAccountSigner

public final class ServiceAccountSigner

Builds Nylas Service Account request-signing headers for organization admin APIs.

For POST, PUT, and PATCH requests, buildHeaders also returns the canonical JSON body string that must be sent on the wire for the signature to match.

Constructors

Link copied to clipboard
public ServiceAccountSigner ServiceAccountSigner(String privateKeyPem, String privateKeyId)

Create a signer from an RSA private key in PKCS#8 PEM format.

public ServiceAccountSigner ServiceAccountSigner(PrivateKey privateKey, String privateKeyId)

Types

Link copied to clipboard
public class Companion

Properties

Link copied to clipboard

Functions

Link copied to clipboard
public final ServiceAccountSigningResult buildHeaders(String method, String path, Object body, Long timestamp)
public final ServiceAccountSigningResult buildHeaders(String method, String path, Object body, Long timestamp, String nonce)

Build the four required Nylas Service Account signing headers.