![]() |
TYPO3
7.6
|
Public Member Functions | |
isReady () | |
getExponent () | |
setExponent ($exponent) | |
getPrivateKey () | |
setPrivateKey ($privateKey) | |
getPublicKeyModulus () | |
setPublicKey ($publicKeyModulus) | |
Protected Member Functions | |
hasExponent () | |
hasPrivateKey () | |
hasPublicKeyModulus () | |
Protected Attributes | |
$exponent = 0 | |
$privateKey = '' | |
$publicKeyModulus = 0 | |
This class contain an RSA key pair. Its purpose is to keep to keys and transfer these keys between other PHP classes.
Definition at line 21 of file Keypair.php.
getExponent | ( | ) |
Retrieves the exponent.
Definition at line 59 of file Keypair.php.
References Keypair\$exponent.
Referenced by Keypair\hasExponent().
getPrivateKey | ( | ) |
Retrieves the private key.
Definition at line 97 of file Keypair.php.
References Keypair\$privateKey.
Referenced by Keypair\hasPrivateKey().
getPublicKeyModulus | ( | ) |
Retrieves the public key modulus
Definition at line 135 of file Keypair.php.
References Keypair\$publicKeyModulus.
Referenced by Keypair\hasPublicKeyModulus().
|
protected |
Checks whether an exponent already has been set.
Definition at line 87 of file Keypair.php.
References Keypair\getExponent().
Referenced by Keypair\isReady(), and Keypair\setExponent().
|
protected |
Checks whether a private key already has been set.
Definition at line 125 of file Keypair.php.
References Keypair\getPrivateKey().
Referenced by Keypair\isReady(), and Keypair\setPrivateKey().
|
protected |
Checks whether a public key modulus already has been set.
Definition at line 163 of file Keypair.php.
References Keypair\getPublicKeyModulus().
Referenced by Keypair\isReady(), and Keypair\setPublicKey().
isReady | ( | ) |
Checks if this key pair already has been provided with all data.
Definition at line 49 of file Keypair.php.
References Keypair\hasExponent(), Keypair\hasPrivateKey(), and Keypair\hasPublicKeyModulus().
setExponent | ( | $exponent | ) |
Sets the exponent
Note: This method must not be called more than one time.
int | $exponent | the new exponent |
\BadMethodCallException | if the method was called more than one time |
Definition at line 73 of file Keypair.php.
References Keypair\$exponent, and Keypair\hasExponent().
setPrivateKey | ( | $privateKey | ) |
Sets the private key.
Note: This method must not be called more than one time.
string | $privateKey | The new private key |
\BadMethodCallException | if the method was called more than one time |
Definition at line 111 of file Keypair.php.
References Keypair\$privateKey, and Keypair\hasPrivateKey().
setPublicKey | ( | $publicKeyModulus | ) |
Sets the public key modulus.
Note: This method must not be called more than one time.
int | $publicKeyModulus | the new public key modulus |
\BadMethodCallException | if the method was called more than one time |
Definition at line 149 of file Keypair.php.
References Keypair\$publicKeyModulus, and Keypair\hasPublicKeyModulus().
|
protected |
Definition at line 28 of file Keypair.php.
Referenced by Keypair\getExponent(), and Keypair\setExponent().
|
protected |
Definition at line 35 of file Keypair.php.
Referenced by Keypair\getPrivateKey(), and Keypair\setPrivateKey().
|
protected |
Definition at line 42 of file Keypair.php.
Referenced by Keypair\getPublicKeyModulus(), and Keypair\setPublicKey().