PHP Class Sslurp\X509Certificate

ファイルを表示 Open project: evandotpro/sslurp Class Usage Examples

Protected Properties

Property Type Description
$certificate
$pin string
$publicKey resource
$publicKeyDetails array

Public Methods

Method Description
__construct ( $certificate )
getPin ( ) : string Get the certificate pin.
getPublicKey ( ) : resource Extracts the public key from certificate and prepares it for use by other functions.
getPublicKeyDetails ( ) : array This function returns the key details (bits, key, type).

Method Details

__construct() public method

public __construct ( $certificate )
$certificate mixed X.509 resource, X.509 certificate string, or path to X.509 certificate file.

getPin() public method

By Kevin McArthur of StormTide Digital Studios Inc.
public getPin ( ) : string
return string

getPublicKey() public method

OOP alias for openssl_pkey_get_public / openssl_get_publickey.
public getPublicKey ( ) : resource
return resource 'OpenSSL key'

getPublicKeyDetails() public method

This function returns the key details (bits, key, type).
public getPublicKeyDetails ( ) : array
return array

Property Details

$certificate protected_oe property

protected $certificate

$pin protected_oe property

protected string $pin
return string

$publicKey protected_oe property

protected resource $publicKey
return resource

$publicKeyDetails protected_oe property

protected array $publicKeyDetails
return array