DerPrivateKeySerializer
in package
implements
PrivateKeySerializerInterface
PEM Private key formatter
Tags
Table of Contents
Interfaces
Constants
- VERSION = 1
Properties
Methods
- __construct() : mixed
- parse() : PrivateKeyInterface
- serialize() : string
- encodePubKey() : BitString
- formatKey() : string
Constants
VERSION
public
mixed
VERSION
= 1
Properties
$adapter
private
GmpMathInterface|null
$adapter
$pubKeySerializer
private
DerPublicKeySerializer
$pubKeySerializer
Methods
__construct()
public
__construct([GmpMathInterface $adapter = null ][, DerPublicKeySerializer $pubKeySerializer = null ]) : mixed
Parameters
- $adapter : GmpMathInterface = null
- $pubKeySerializer : DerPublicKeySerializer = null
parse()
public
parse(string $data) : PrivateKeyInterface
Parameters
- $data : string
Tags
Return values
PrivateKeyInterfaceserialize()
public
serialize(PrivateKeyInterface $key) : string
Parameters
- $key : PrivateKeyInterface
Tags
Return values
stringencodePubKey()
private
encodePubKey(PrivateKeyInterface $key) : BitString
Parameters
- $key : PrivateKeyInterface
Return values
BitStringformatKey()
private
formatKey(PrivateKeyInterface $key) : string
Parameters
- $key : PrivateKeyInterface