1595. Class

1595.1. Zend\Crypt\PublicKey\Rsa\PublicKey

RSA public key

1595.1.1. Methods

1595.1.1.1. fromFile

fromFile()

Create public key instance public key from PEM formatted key file or X.509 certificate file

Parameters:string
Return type:PublicKey
Throws :ExceptionInvalidArgumentException

1595.1.1.2. __construct

__construct()

Construct public key with PEM formatted string or X.509 certificate

Parameters:string
Throws ExceptionRuntimeException:
 

1595.1.1.3. encrypt

encrypt()

Encrypt using this key

Parameters:string
Throws ExceptionInvalidArgumentException:
 
Throws ExceptionRuntimeException:
 
Return type:string

1595.1.1.4. decrypt

decrypt()

Decrypt using this key

Parameters:string
Throws ExceptionInvalidArgumentException:
 
Throws ExceptionRuntimeException:
 
Return type:string

1595.1.1.5. getCertificate

getCertificate()

Get certificate string

Return type:string

1595.1.1.6. toString

toString()

To string

Return type:string
Throws :ExceptionRuntimeException

1595.1.2. Constants

1595.1.2.1. CERT_START