\OCPICertificateManager

Manage trusted certificates for users

Summary

Methods
Constants
listCertificates()
addCertificate()
removeCertificate()
getCertificateBundle()
getAbsoluteBundlePath()
No constants found
No protected methods found
N/A
No private methods found
N/A

Methods

listCertificates()

listCertificates() : array<mixed,\OCP\ICertificate>

Returns all certificates trusted by the user

Returns

array<mixed,\OCP\ICertificate>

addCertificate()

addCertificate(string  $certificate, string  $name) : \OCP\ICertificate

Parameters

string $certificate

the certificate data

string $name

the filename for the certificate

Throws

\Exception

If the certificate could not get added

Returns

\OCP\ICertificate

removeCertificate()

removeCertificate(string  $name) 

Parameters

string $name

getCertificateBundle()

getCertificateBundle(string  $uid = '') : string

Get the path to the certificate bundle for this user

Parameters

string $uid

(optional) user to get the certificate bundle for, use null to get the system bundle (since 9.0.0)

Returns

string

getAbsoluteBundlePath()

getAbsoluteBundlePath(string  $uid = '') : string

Get the full local path to the certificate bundle for this user

Parameters

string $uid

(optional) user to get the certificate bundle for, use null to get the system bundle

Returns

string