Client and backend. This class is shared: the same code is compiled into your app and into your server, so everything on this page works in both.

public interface CertificateRequest.Signer

Signs the encoded request body with the private key matching the request’s public key, using getSignatureAlgorithm().

Methods

public abstract byte[] sign(byte[] data) throws IOExceptionSigns data.

Method details

sign

public abstract byte[] sign(byte[] data) throws IOException
Signs data.

Parameters

data byte[]
the DER CertificationRequestInfo

Returns

the signature; for ECDSA the DER SEQUENCE { r, s } the platform’s SHA256withECDSA produces

Throws

IOException
when the key cannot sign