mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-12-28 12:10:59 +00:00
PublicKeyLoader: make all methods static
This commit is contained in:
parent
12864bd9f6
commit
291eec0ce5
@ -72,7 +72,7 @@ abstract class PublicKeyLoader
|
||||
* @param string|array $key
|
||||
* @param string $password optional
|
||||
*/
|
||||
public function loadPrivateKey($key, $password = false)
|
||||
public static function loadPrivateKey($key, $password = false)
|
||||
{
|
||||
$key = self::load($key, $password);
|
||||
if (!$key instanceof PrivateKey) {
|
||||
@ -88,7 +88,7 @@ abstract class PublicKeyLoader
|
||||
* @access public
|
||||
* @param string|array $key
|
||||
*/
|
||||
public function loadPublicKey($key)
|
||||
public static function loadPublicKey($key)
|
||||
{
|
||||
$key = self::load($key);
|
||||
if (!$key instanceof PublicKey) {
|
||||
@ -104,7 +104,7 @@ abstract class PublicKeyLoader
|
||||
* @access public
|
||||
* @param string|array $key
|
||||
*/
|
||||
public function loadParameters($key)
|
||||
public static function loadParameters($key)
|
||||
{
|
||||
$key = self::load($key);
|
||||
if (!$key instanceof PrivateKey && !$key instanceof PublicKey) {
|
||||
|
Loading…
Reference in New Issue
Block a user