Manager

class OC\Security\IdentityProof\Manager
Source:lib/private/Security/IdentityProof/Manager.php#40

Properties

Methods

public OC\Security\IdentityProof\Manager::__construct($appDataFactory, $crypto, $config, $logger)
Source:lib/private/Security/IdentityProof/Manager.php#50
protected OC\Security\IdentityProof\Manager::generateKeyPair()
Calls the openssl functions to generate a public and private key.
In a separate function for unit testing purposes.
Source:lib/private/Security/IdentityProof/Manager.php#68
Returns:array [$publicKey, $privateKey]
Throws:\RuntimeException
protected OC\Security\IdentityProof\Manager::generateKey($id)
Generate a key for a given ID
Note: If a key already exists it will be overwritten
Source:

lib/private/Security/IdentityProof/Manager.php#102

Parameters:
  • $id (string) key id
Returns:

\OC\Security\IdentityProof\Key

Throws:

\RuntimeException

protected OC\Security\IdentityProof\Manager::retrieveKey($id)
Get key for a specific id
Source:

lib/private/Security/IdentityProof/Manager.php#126

Parameters:
  • $id (string)
Returns:

\OC\Security\IdentityProof\Key

Throws:

\RuntimeException

public OC\Security\IdentityProof\Manager::getKey($user)
Get public and private key for $user
Source:

lib/private/Security/IdentityProof/Manager.php#146

Parameters:
Returns:

\OC\Security\IdentityProof\Key

Throws:

\RuntimeException

public OC\Security\IdentityProof\Manager::getSystemKey()
Get instance wide public and private key
Source:lib/private/Security/IdentityProof/Manager.php#157
Returns:\OC\Security\IdentityProof\Key
Throws:\RuntimeException