Signer¶
-
class
OC\Security\IdentityProof\
Signer
¶ Source: lib/private/Security/IdentityProof/Signer.php#35
Properties¶
Methods¶
-
public
OC\Security\IdentityProof\Signer::
__construct
($keyManager, $timeFactory, $userManager)¶ Source: Parameters: - $keyManager (
OC\Security\IdentityProof\Manager
) - $timeFactory (
OCP\AppFramework\Utility\ITimeFactory
) - $userManager (
OCP\IUserManager
)
- $keyManager (
-
public
OC\Security\IdentityProof\Signer::
sign
($type, $data, $user)¶ - Returns a signed blob for $data
Source: Parameters: - $type (string)
- $data (array)
- $user (
OCP\IUser
)
Returns: array [‘message’, ‘signature’]
-
public
OC\Security\IdentityProof\Signer::
verify
($data)¶ - Whether the data is signed properly
Source: Parameters: - $data (array)
Returns: bool