PHP Class Spatie\SslCertificate\SslCertificate

Show file Open project: spatie/ssl-certificate

Protected Properties

Property Type Description
$rawCertificateFields array

Public Methods

Method Description
__construct ( array $rawCertificateFields )
appliesToUrl ( string $url ) : boolean
createForHostName ( string $url, integer $timeout = 30 ) : SslCertificate
expirationDate ( ) : Carbon\Carbon
getAdditionalDomains ( ) : array
getDomain ( ) : string
getIssuer ( ) : string
getRawCertificateFields ( ) : array
getSignatureAlgorithm ( ) : string
isExpired ( ) : boolean
isValid ( string $url = null )
isValidUntil ( Carbon\Carbon $carbon, string $url = null ) : boolean
validFromDate ( ) : Carbon\Carbon

Protected Methods

Method Description
wildcardHostCoversHost ( string $wildcardHost, string $host ) : boolean

Method Details

__construct() public method

public __construct ( array $rawCertificateFields )
$rawCertificateFields array

appliesToUrl() public method

public appliesToUrl ( string $url ) : boolean
$url string
return boolean

createForHostName() public static method

public static createForHostName ( string $url, integer $timeout = 30 ) : SslCertificate
$url string
$timeout integer
return SslCertificate

expirationDate() public method

public expirationDate ( ) : Carbon\Carbon
return Carbon\Carbon

getAdditionalDomains() public method

public getAdditionalDomains ( ) : array
return array

getDomain() public method

public getDomain ( ) : string
return string

getIssuer() public method

public getIssuer ( ) : string
return string

getRawCertificateFields() public method

public getRawCertificateFields ( ) : array
return array

getSignatureAlgorithm() public method

public getSignatureAlgorithm ( ) : string
return string

isExpired() public method

public isExpired ( ) : boolean
return boolean

isValid() public method

public isValid ( string $url = null )
$url string

isValidUntil() public method

public isValidUntil ( Carbon\Carbon $carbon, string $url = null ) : boolean
$carbon Carbon\Carbon
$url string
return boolean

validFromDate() public method

public validFromDate ( ) : Carbon\Carbon
return Carbon\Carbon

wildcardHostCoversHost() protected method

protected wildcardHostCoversHost ( string $wildcardHost, string $host ) : boolean
$wildcardHost string
$host string
return boolean

Property Details

$rawCertificateFields protected property

protected array $rawCertificateFields
return array