Fully Qualified Name: | Zend\Crypt\PublicKey\RsaOptions |
Extends: | AbstractOptions |
RSA instance options
Name | Description | Defined By |
---|---|---|
__construct() | Constructor | AbstractOptions |
__get() | Get a configuration property | AbstractOptions |
__isset() | Test if a configuration property is null | AbstractOptions |
__set() | Set a configuration property | AbstractOptions |
__unset() | Set a configuration property to NULL | AbstractOptions |
generateKeys() | Generate new private/public key pair | RsaOptions |
getBinaryOutput() | Get the value of binary output | RsaOptions |
getHashAlgorithm() | Get hash algorithm | RsaOptions |
getOpensslPadding() | Get the OPENSSL padding | RsaOptions |
getOpensslSignatureAlgorithm() | RsaOptions | |
getPassPhrase() | Get pass phrase | RsaOptions |
getPrivateKey() | Get private key | RsaOptions |
getPublicKey() | Get public key | RsaOptions |
setBinaryOutput() | Enable/disable the binary output | RsaOptions |
setFromArray() | Set one or more configuration properties | AbstractOptions |
setHashAlgorithm() | Set hash algorithm | RsaOptions |
setOpensslPadding() | Set the OPENSSL padding | RsaOptions |
setPassPhrase() | Set pass phrase | RsaOptions |
setPrivateKey() | Set private key | RsaOptions |
setPublicKey() | Set public key | RsaOptions |
toArray() | Cast to array | AbstractOptions |
Constructor
Parameter Name | Type | Description |
---|---|---|
$options | array|\Traversable|null |
Returns:
Get a configuration property
Parameter Name | Type | Description |
---|---|---|
$key | string |
Returns: mixed
Test if a configuration property is null
Parameter Name | Type | Description |
---|---|---|
$key | string |
Returns: bool
Set a configuration property
Parameter Name | Type | Description |
---|---|---|
$key | string | |
$value | mixed |
Returns: void
Set a configuration property to NULL
Parameter Name | Type | Description |
---|---|---|
$key | string |
Returns: void
Generate new private/public key pair
Parameter Name | Type | Description |
---|---|---|
$opensslConfig | array |
Returns: \RsaOptions Provides a fluent interface
Get the value of binary output
Returns: bool
Get hash algorithm
Returns: string
Get the OPENSSL padding
Returns: int|null
Returns: void
Get pass phrase
Returns: string
Get private key
Returns: null|\Rsa\PrivateKey
Get public key
Returns: null|\Rsa\PublicKey
Enable/disable the binary output
Parameter Name | Type | Description |
---|---|---|
$value | bool |
Returns: \RsaOptions Provides a fluent interface
Set one or more configuration properties
Parameter Name | Type | Description |
---|---|---|
$options | array|\Traversable|\AbstractOptions |
Returns: \AbstractOptions Provides fluent interface
Set hash algorithm
Parameter Name | Type | Description |
---|---|---|
$hash | string |
Returns: \RsaOptions Provides a fluent interface
Set the OPENSSL padding
Parameter Name | Type | Description |
---|---|---|
$opensslPadding | int|null |
Returns: \RsaOptions Provides a fluent interface
Set pass phrase
Parameter Name | Type | Description |
---|---|---|
$phrase | string |
Returns: \RsaOptions Provides a fluent interface
Set private key
Parameter Name | Type | Description |
---|---|---|
$key | \Rsa\PrivateKey |
Returns: \RsaOptions Provides a fluent interface
Set public key
Parameter Name | Type | Description |
---|---|---|
$key | \Rsa\PublicKey |
Returns: \RsaOptions Provides a fluent interface
Cast to array
Returns: array