ParsedKey
final class ParsedKey implements Key
Constants
| private MINIMUM_KEY_LENGTH |
|
| private KEY_TYPES |
|
Methods
Parse a private key once for repeated signing.
Parse a public key once for repeated verification.
Return the original PEM contents.
Return the private key's passphrase.
Return the parsed OpenSSL key.
Return the public key's PEM contents.
Return the public key's JWK thumbprint.
Return the public JSON Web Key.
Collect the OpenSSL errors for a failed key or signature operation.
Details
at line 73
static ParsedKey
fromPrivateKey(string $contents, string $passphrase = '')
Parse a private key once for repeated signing.
at line 81
static ParsedKey
fromPublicKey(string $contents)
Parse a public key once for repeated verification.
at line 91
string
contents()
Return the original PEM contents.
at line 99
string
passphrase()
Return the private key's passphrase.
at line 107
OpenSSLAsymmetricKey
getKey()
Return the parsed OpenSSL key.
at line 115
string
getPublicKey()
Return the public key's PEM contents.
at line 123
string
getKeyId()
Return the public key's JWK thumbprint.
at line 133
array
getJwk()
Return the public JSON Web Key.
at line 149
static string
opensslErrors()
Collect the OpenSSL errors for a failed key or signature operation.