메소드 |
설명 |
|
__construct ( $pemFile, $passphrase = null, $validate = true, $endpointEnv = null ) |
APNS Certificate constructor |
|
getDescription ( ) : string |
An as humanreadable as possible description of the certificate to identify the certificate |
|
getEndpoint ( $endpointType ) : string |
Get the endpoint this certificate is valid for |
|
getEnvironment ( ) : Certificate::ENDPOINT_ENV_PRODUCTION | Certificate::ENDPOINT_ENV_SANDBOX |
Get the APNS environment this certificate is associated with |
|
getFingerprint ( ) : string |
Get a unique hash of the certificate
this can be used to check if two Apns\Certificate objects are the same |
|
getPassphrase ( ) : string |
Passphrase to use with the PEM file |
|
getPemFile ( ) : string |
Get the path to the PEM file |
|
getValidFrom ( ) : DateTime | null |
Get moment this certificate will become valid
Note: Will return null if certificate validation was disabled |
|
getValidTo ( ) : DateTime | null |
Get moment this certificate will expire
Note: Will return null if certificate validation was disabled |
|
hasPassphrase ( ) : boolean |
Checks if there is a passphrase to use with the certificate |
|
isValidated ( ) : boolean |
Check if this certificate is validated |
|
serialize ( ) : string |
String representation of object |
|
unserialize ( $serialized ) |
Constructs the object from serialized data |
|