Zend\Crypt\PublicKey\RsaOptions
RSA instance options
Synopsis
class RsaOptions
extends AbstractOptions
{
- // members
- protected PrivateKey $privateKey;
- protected PublicKey $publicKey;
- protected string $hashAlgorithm;
- protected int $opensslSignatureAlgorithm;
- protected string $passPhrase;
- protected bool $binaryOutput;
- // Inherited members from AbstractOptions
- protected bool $__strictMode__;
- // methods
- public RsaOptions setPrivateKey()
- public PrivateKey getPrivateKey()
- public RsaOptions setPublicKey()
- public PublicKey getPublicKey()
- public RsaOptions setPassPhrase()
- public string getPassPhrase()
- public RsaOptions setHashAlgorithm()
- public string getHashAlgorithm()
- public void getOpensslSignatureAlgorithm()
- public RsaOptions setBinaryOutput()
- public bool getBinaryOutput()
- public RsaOptions generateKeys()
- // Inherited methods from AbstractOptions
- public void __construct()
- public AbstractOptions setFromArray()
- public array toArray()
- public void __set()
- public mixed __get()
- public bool __isset()
- public void __unset()
Hierarchy
Extends
Members
protected
- $__strictMode__
—
Zend\Stdlib\bool
We use the __ prefix to avoid collisions with properties in user-implementations. - $binaryOutput
—
Zend\Crypt\PublicKey\bool
Output is binary - $hashAlgorithm — string
- $opensslSignatureAlgorithm
—
int
Signature hash algorithm defined by openss constants - $passPhrase — string
- $privateKey — Zend\Crypt\PublicKey\Rsa\PrivateKey
- $publicKey — Zend\Crypt\PublicKey\Rsa\PublicKey
Methods
public
- generateKeys() — Generate new private/public key pair
- getBinaryOutput() — Get the value of binary output
- getHashAlgorithm() — Get hash algorithm
- getOpensslSignatureAlgorithm()
- getPassPhrase() — Get pass phrase
- getPrivateKey() — Get private key
- getPublicKey() — Get public key
- setBinaryOutput() — Enable/disable the binary output
- setHashAlgorithm() — Set hash algorithm
- setPassPhrase() — Set pass phrase
- setPrivateKey() — Set private key
- setPublicKey() — Set public key