PHP Класс Namshi\JOSE\Signer\OpenSSL\PublicKey

Наследование: implements Namshi\JOSE\Signer\SignerInterface
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
sign ( $input, $key, $password = null )
verify ( $key, $signature, $input )

Защищенные методы

Метод Описание
getHashingAlgorithm ( ) : string Returns the hashing algorithm used in this signer.
getKeyResource ( string | resource $key, string $password = null ) : resource Converts a string representation of a key into an OpenSSL resource.
getSupportedPrivateKeyType ( ) : string Returns the private key type supported in this signer.
supportsKey ( resource $key ) : boolean Check if the key is supported by this signer.

Описание методов

getHashingAlgorithm() абстрактный защищенный Метод

Returns the hashing algorithm used in this signer.
abstract protected getHashingAlgorithm ( ) : string
Результат string

getKeyResource() защищенный Метод

Converts a string representation of a key into an OpenSSL resource.
protected getKeyResource ( string | resource $key, string $password = null ) : resource
$key string | resource
$password string
Результат resource OpenSSL key resource

getSupportedPrivateKeyType() абстрактный защищенный Метод

Returns the private key type supported in this signer.
abstract protected getSupportedPrivateKeyType ( ) : string
Результат string

sign() публичный Метод

public sign ( $input, $key, $password = null )

supportsKey() защищенный Метод

Check if the key is supported by this signer.
protected supportsKey ( resource $key ) : boolean
$key resource Public or private key
Результат boolean

verify() публичный Метод

public verify ( $key, $signature, $input )