Zend Framework
3.0
|
RSA instance options. More...
Public Member Functions | |
setPrivateKey (Rsa\PrivateKey $key) | |
Set private key. | |
getPrivateKey () | |
Get private key. | |
setPublicKey (Rsa\PublicKey $key) | |
Set public key. | |
getPublicKey () | |
Get public key. | |
setPassPhrase ($phrase) | |
Set pass phrase. | |
getPassPhrase () | |
Get pass phrase. | |
setHashAlgorithm ($hash) | |
Set hash algorithm. | |
getHashAlgorithm () | |
Get hash algorithm. | |
getOpensslSignatureAlgorithm () | |
setBinaryOutput ($value) | |
Enable/disable the binary output. | |
getBinaryOutput () | |
Get the value of binary output. | |
getOpensslPadding () | |
Get the OPENSSL padding. | |
setOpensslPadding ($opensslPadding) | |
Set the OPENSSL padding. | |
generateKeys (array $opensslConfig=[]) | |
Generate new private/public key pair. | |
Public Member Functions inherited from AbstractOptions | |
__construct ($options=null) | |
Constructor. | |
setFromArray ($options) | |
Set one or more configuration properties. | |
toArray () | |
Cast to array. | |
__set ($key, $value) | |
Set a configuration property. | |
__get ($key) | |
Get a configuration property. | |
__isset ($key) | |
Test if a configuration property is null. | |
__unset ($key) | |
Set a configuration property to NULL. | |
Protected Attributes | |
$privateKey = null | |
$publicKey = null | |
$hashAlgorithm = 'sha1' | |
$opensslSignatureAlgorithm = null | |
$passPhrase = null | |
$binaryOutput = true | |
$opensslPadding | |
Protected Attributes inherited from AbstractOptions | |
$__strictMode__ = true | |
RSA instance options.
generateKeys | ( | array | $opensslConfig = [] | ) |
Generate new private/public key pair.
array | $opensslConfig |
Rsa\Exception\RuntimeException |
getBinaryOutput | ( | ) |
Get the value of binary output.
getHashAlgorithm | ( | ) |
Get hash algorithm.
getOpensslPadding | ( | ) |
Get the OPENSSL padding.
getOpensslSignatureAlgorithm | ( | ) |
getPassPhrase | ( | ) |
Get pass phrase.
getPrivateKey | ( | ) |
Get private key.
getPublicKey | ( | ) |
Get public key.
setBinaryOutput | ( | $value | ) |
setHashAlgorithm | ( | $hash | ) |
Set hash algorithm.
string | $hash |
Rsa\Exception\RuntimeException | |
Rsa\Exception\InvalidArgumentException |
setOpensslPadding | ( | $opensslPadding | ) |
Set the OPENSSL padding.
int | null | $opensslPadding |
setPassPhrase | ( | $phrase | ) |
setPrivateKey | ( | Rsa\PrivateKey | $key | ) |
setPublicKey | ( | Rsa\PublicKey | $key | ) |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |