ParsedKey
final class ParsedKey implements Key
Properties
| int | $type | ||
| int | $bits |
Methods
static ParsedKey
fromPrivateKey(string $contents, string $passphrase = '')
Parse a private key once for repeated signing.
static ParsedKey
fromPublicKey(string $contents)
Parse a public key once for repeated verification.
string
contents()
Return the original PEM contents.
string
passphrase()
Return the private key's passphrase.
OpenSSLAsymmetricKey
getKey()
Return the parsed OpenSSL key.
static string
opensslErrors()
Collect the OpenSSL errors for a failed key or signature operation.
Details
at line 42
static ParsedKey
fromPrivateKey(string $contents, string $passphrase = '')
Parse a private key once for repeated signing.
at line 50
static ParsedKey
fromPublicKey(string $contents)
Parse a public key once for repeated verification.
at line 60
string
contents()
Return the original PEM contents.
at line 68
string
passphrase()
Return the private key's passphrase.
at line 76
OpenSSLAsymmetricKey
getKey()
Return the parsed OpenSSL key.
at line 84
static string
opensslErrors()
Collect the OpenSSL errors for a failed key or signature operation.