PHP Class Kelunik\Acme\KeyPair

Author: Niklas Keller ([email protected])
Show file Open project: kelunik/acme Class Usage Examples

Public Methods

Method Description
__construct ( string $private, string $public ) KeyPair constructor.
getPrivate ( ) : string Gets the private key.
getPublic ( ) : string Gets the public key.

Method Details

__construct() public method

KeyPair constructor.
public __construct ( string $private, string $public )
$private string private key (PEM encoded)
$public string public key (PEM encoded)

getPrivate() public method

Gets the private key.
public getPrivate ( ) : string
return string private key (PEM encoded)

getPublic() public method

Gets the public key.
public getPublic ( ) : string
return string public key (PEM encoded)