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 IDNote: If a key already exists it will be overwritten
Source: Parameters: - $id (string) key id
Returns: Throws: \RuntimeException
-
protected
OC\Security\IdentityProof\Manager::
retrieveKey
($id)¶ - Get key for a specific id
Source: Parameters: - $id (string)
Returns: Throws: \RuntimeException
-
public
OC\Security\IdentityProof\Manager::
getKey
($user)¶ - Get public and private key for $user
Source: Parameters: - $user (
OCP\IUser
)
Returns: Throws: \RuntimeException
- $user (
-
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