Methods
Construct public key with PEM formatted string or X.509 certificate
__construct(string $pemStringOrCertificate)
Parameters
$pemStringOrCertificate
string
Exceptions
__toString()
__toString() : string
Inherited
inherited_from |
\Zend\Crypt\PublicKey\Rsa\AbstractKey::__toString() |
Returns
string
Decrypt using this key
decrypt(string $data) : string
Parameters
$data
string
Exceptions
Returns
string
Encrypt using this key
encrypt(string $data) : string
Parameters
$data
string
Exceptions
Returns
string
Create public key instance public key from PEM formatted key file
or X.509 certificate file
fromFile(string $pemOrCertificateFile) : \Zend\Crypt\PublicKey\Rsa\PublicKey
Parameters
$pemOrCertificateFile
string
Exceptions
Returns
Get certificate string
getCertificate() : string
Retrieve openssl key resource
getOpensslKeyResource() : resource
Inherited
inherited_from |
\Zend\Crypt\PublicKey\Rsa\AbstractKey::getOpensslKeyResource() |
Returns
resource
Get key size in bits
getSize() : int
Inherited
inherited_from |
\Zend\Crypt\PublicKey\Rsa\AbstractKey::getSize() |
Returns
int
To string
toString() : string
Exceptions
Returns
string
Properties
$certificateString
$certificateString : string
Openssl details array
$details : array
Inherited
inherited_from |
\Zend\Crypt\PublicKey\Rsa\AbstractKey::$$details |
Key Resource
$opensslKeyResource : resource
Inherited
inherited_from |
\Zend\Crypt\PublicKey\Rsa\AbstractKey::$$opensslKeyResource |
PEM formatted key
$pemString : string
Inherited
inherited_from |
\Zend\Crypt\PublicKey\Rsa\AbstractKey::$$pemString |
Constants
DEFAULT_KEY_SIZE
DEFAULT_KEY_SIZE
Inherited
inherited_from |
\Zend\Crypt\PublicKey\Rsa\AbstractKey::DEFAULT_KEY_SIZE |