loadPublic -> loadPublicKey; loadPrivate -> loadPrivateKey

This commit is contained in:
terrafrost 2021-02-12 07:48:12 -06:00
parent 052cb7d762
commit 55f23334cd
2 changed files with 6 additions and 6 deletions

View File

@ -188,7 +188,7 @@ abstract class AsymmetricKey
* @param string|array $key
* @param string $password optional
*/
public function loadPrivate($key, $password = '')
public function loadPrivateKey($key, $password = '')
{
$key = self::load($key, $password);
if (!$key instanceof PrivateKey) {
@ -204,7 +204,7 @@ abstract class AsymmetricKey
* @access public
* @param string|array $key
*/
public function loadPublic($key)
public function loadPublicKey($key)
{
$key = self::load($key);
if (!$key instanceof PublicKey) {
@ -270,7 +270,7 @@ abstract class AsymmetricKey
* @param string $key
* @param string $password optional
*/
public function loadPrivateFormat($type, $key, $password = false)
public function loadPrivateKeyFormat($type, $key, $password = false)
{
$key = self::loadFormat($type, $key, $password);
if (!$key instanceof PrivateKey) {
@ -287,7 +287,7 @@ abstract class AsymmetricKey
* @param string $type
* @param string $key
*/
public function loadPublicFormat($type, $key)
public function loadPublicKeyFormat($type, $key)
{
$key = self::loadFormat($type, $key);
if (!$key instanceof PublicKey) {

View File

@ -72,7 +72,7 @@ abstract class PublicKeyLoader
* @param string|array $key
* @param string $password optional
*/
public function loadPrivate($key, $password = false)
public 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 loadPublic($key)
public function loadPublicKey($key)
{
$key = self::load($key);
if (!$key instanceof PublicKey) {