Methods |
public
|
__construct(StorageInterface $storage, string $name)
KeyAbstract constructor.
Parameters
$storage |
key store
|
$name |
case-insensitive key name, allow only A-Z, 0-9, _ and -
|
|
#
|
abstract
public
|
getSigning(): string
get key for use in signing
get key for use in signing
Returns
Implemented by
|
#
|
abstract
public
|
getVerifying(): string
get key for use in verifying
get key for use in verifying
Returns
Implemented by
|
#
|
abstract
public
|
create(): boolean
create the key and store it for use
create the key and store it for use
Returns
true if key was created and stored, otherwise false
Implemented by
|
#
|
abstract
public
|
kill(): boolean
delete the key
Returns
true if key was deleted, otherwise false
Implemented by
|
#
|