forCertificate

open fun forCertificate(certificate: String): PemSslStoreDetails

Factory method to create a new PemSslStoreDetails instance for the given certificate. Note: This method doesn't actually check if the provided value only contains a single certificate. It is functionally equivalent to forCertificates.

Return

a new PemSslStoreDetails instance.

Parameters

certificate

the certificate content (either the PEM content itself or areference to the resource to load)