PHP Class Spatie\Certificate\Certificate

Show file Open project: spatie/ssl-certificate-chain-resolver Class Usage Examples

Protected Properties

Property Type Description
$contents

Public Methods

Method Description
__construct ( $contents )
getContents ( ) : string Get the contents of the certificate.
getIssuerDN ( ) : string Get the issuer DN of the certificate.
getParentCertificateURL ( ) : string Get the URL of the parent certificate.
hasParentInTrustChain ( ) : boolean Does this certificate have a parent.

Protected Methods

Method Description
guardAgainstInvalidContents ( $contents ) Check if inputfile is correct.

Method Details

__construct() public method

public __construct ( $contents )

getContents() public method

Get the contents of the certificate.
public getContents ( ) : string
return string

getIssuerDN() public method

Get the issuer DN of the certificate.
public getIssuerDN ( ) : string
return string

getParentCertificateURL() public method

Get the URL of the parent certificate.
public getParentCertificateURL ( ) : string
return string

guardAgainstInvalidContents() protected method

Check if inputfile is correct.
protected guardAgainstInvalidContents ( $contents )
$contents

hasParentInTrustChain() public method

Does this certificate have a parent.
public hasParentInTrustChain ( ) : boolean
return boolean

Property Details

$contents protected property

protected $contents