ICertificateManager
Manage trusted certificates for users
Tags
Table of Contents
- addCertificate() : ICertificate
- getAbsoluteBundlePath() : string
- Get the full local path to the certificate bundle for this user
- getCertificateBundle() : string
- Get the path to the certificate bundle for this user
- listCertificates() : \OCP\ICertificate[]
- Returns all certificates trusted by the user
- removeCertificate() : mixed
Methods
addCertificate()
public
addCertificate(string $certificate, string $name) : ICertificate
Parameters
- $certificate : string
-
the certificate data
- $name : string
-
the filename for the certificate
Tags
Return values
ICertificate —getAbsoluteBundlePath()
Get the full local path to the certificate bundle for this user
public
getAbsoluteBundlePath([string $uid = '' ]) : string
Parameters
- $uid : string = ''
-
(optional) user to get the certificate bundle for, use
nullto get the system bundle
Tags
Return values
string —getCertificateBundle()
Get the path to the certificate bundle for this user
public
getCertificateBundle([string $uid = '' ]) : string
Parameters
- $uid : string = ''
-
(optional) user to get the certificate bundle for, use
nullto get the system bundle (since 9.0.0)
Tags
Return values
string —listCertificates()
Returns all certificates trusted by the user
public
listCertificates() : \OCP\ICertificate[]
Tags
Return values
\OCP\ICertificate[] —removeCertificate()
public
removeCertificate(string $name) : mixed
Parameters
- $name : string