setServiceCertificate
Set or clear a service certificate for a session. When set and privacyMode is true in getLicenseChallenge, the client_id will be encrypted with this certificate as per Widevine privacy mode.
Return
provider id of the certificate if set, or previous provider id when clearing.
Parameters
sessionId
session id
certificate
SignedMessage-wrapped SignedDrmCertificate bytes or raw SignedDrmCertificate bytes. Pass null to clear and return the previous provider id.
Throws
if the session id is invalid
if parsing fails
if the certificate signature is invalid
open suspend override fun setServiceCertificate(sessionId: ByteString, certificateBase64: String?): String?
Overload of setServiceCertificate accepting a Base64-encoded certificate string. Pass null to clear the currently set certificate.