Documentation

Certificate_Driver_Controller extends Core_Servant_Properties
in package

Certificate_Driver_Controller

Tags
subpackage

Certificate

version
7.x
author

Hostmake LLC

copyright

© 2005-2022 ООО "Хостмэйк" (Hostmake LLC), http://www.hostcms.ru

Table of Contents

$_allowedProperties  : array<string|int, mixed>
Allowed object properties
$_propertiesValues  : array<string|int, mixed>
Properties values
$_unlimitedProperties  : bool
Object has unlimited number of properties
__construct()  : mixed
Constructor.
addAllowedProperties()  : self
Add additional allowed properties
addAllowedProperty()  : self
Add additional allowed property
createCertificate()  : array<string|int, mixed>
Create Certificate
factory()  : mixed
Create and return an object of certificate
getCertificate()  : array<string|int, mixed>
Get information about the supplied certificate
set()  : self
Run when writing data to inaccessible properties
setUnlimitedProperties()  : self
Set unlimitedProperties
sign()  : mixed
Sign a file
_getDriverName()  : srting
Get full driver name

Properties

$_allowedProperties

Allowed object properties

protected array<string|int, mixed> $_allowedProperties = array()

$_propertiesValues

Properties values

protected array<string|int, mixed> $_propertiesValues = array()

$_unlimitedProperties

Object has unlimited number of properties

protected bool $_unlimitedProperties = \FALSE

Methods

__construct()

Constructor.

public __construct() : mixed
Return values
mixed

addAllowedProperties()

Add additional allowed properties

public addAllowedProperties(array<string|int, mixed> $array) : self
Parameters
$array : array<string|int, mixed>

array of properties' names

Return values
self

addAllowedProperty()

Add additional allowed property

public addAllowedProperty(string $property) : self
Parameters
$property : string

property name

Return values
self

createCertificate()

Create Certificate

public abstract createCertificate(array<string|int, mixed> $aDistinguishedNames, string $passphrase) : array<string|int, mixed>
Parameters
$aDistinguishedNames : array<string|int, mixed>

The Distinguished Name or subject fields to be used in the certificate.

$passphrase : string

Passphrase to protect the private key

Return values
array<string|int, mixed>

array('certificate' => $certout, 'private_key' => $private_key)

factory()

Create and return an object of certificate

public static factory(mixed $driverName) : mixed
Parameters
$driverName : mixed
Return values
mixed

getCertificate()

Get information about the supplied certificate

public abstract getCertificate(string $certificate) : array<string|int, mixed>
Parameters
$certificate : string
Return values
array<string|int, mixed>

set()

Run when writing data to inaccessible properties

public set(string $property, string $value) : self
Parameters
$property : string

property name

$value : string

property value

Return values
self

setUnlimitedProperties()

Set unlimitedProperties

public setUnlimitedProperties([bool $value = TRUE ]) : self
Parameters
$value : bool = TRUE

default TRUR

Return values
self

sign()

Sign a file

public abstract sign(Certificate_Model $oCertificate, string $passphrase, string $filepath) : mixed
Parameters
$oCertificate : Certificate_Model
$passphrase : string

Passphrase to decode the private key

$filepath : string

The name of the file to be signed.

Return values
mixed

_getDriverName()

Get full driver name

protected static _getDriverName(string $driver) : srting
Parameters
$driver : string

driver name

Return values
srting

Search results