ICertificateManager

interface OCP\ICertificateManager
Manage trusted certificates for users
Implemented by:OC\Security\CertificateManager
Source:lib/public/ICertificateManager.php#31

Methods

public OCP\ICertificateManager::listCertificates()
Returns all certificates trusted by the user
Source:lib/public/ICertificateManager.php#38
Returns:\OCP\ICertificate[]
Since:8.0.0
public OCP\ICertificateManager::addCertificate($certificate, $name)
Source:

lib/public/ICertificateManager.php#47

Parameters:
  • $certificate (string) the certificate data
  • $name (string) the filename for the certificate
Returns:

\OCP\ICertificate

Throws:

\Exception If the certificate could not get added

Since:

8.0.0 - since 8.1.0 throws exception instead of returning false

public OCP\ICertificateManager::removeCertificate($name)
Source:

lib/public/ICertificateManager.php#53

Parameters:
  • $name (string)
Since:

8.0.0

public OCP\ICertificateManager::getCertificateBundle($uid="")
Get the path to the certificate bundle for this user
Source:

lib/public/ICertificateManager.php#62

Parameters:
  • $uid (string) (optional) user to get the certificate bundle for, use null to get the system bundle (since 9.0.0)
Returns:

string

Since:

8.0.0

public OCP\ICertificateManager::getAbsoluteBundlePath($uid="")
Get the full local path to the certificate bundle for this user
Source:

lib/public/ICertificateManager.php#71

Parameters:
  • $uid (string) (optional) user to get the certificate bundle for, use null to get the system bundle
Returns:

string

Since:

9.0.0