Certificate
class Certificate implements Serializable
Constants
ENDPOINT_ENV_PRODUCTION |
Identifies the APNS production environment
|
ENDPOINT_ENV_SANDBOX |
Identifies the APNS sandbox/development environment
|
ENDPOINT_TYPE_GATEWAY |
Identifies the APNS sending gateway
|
ENDPOINT_TYPE_FEEDBACK |
Identifies the APNS feedback service
|
Methods
APNS Certificate constructor
Get the path to the PEM file
Checks if there is a passphrase to use with the certificate
Passphrase to use with the PEM file
Get the APNS environment this certificate is associated with
Check if this certificate is validated
An as humanreadable as possible description of the certificate to identify the certificate
Get moment this certificate will become valid Note: Will return null if certificate validation was disabled
Get moment this certificate will expire Note: Will return null if certificate validation was disabled
Get the endpoint this certificate is valid for
Get a unique hash of the certificate this can be used to check if two Apns\Certificate objects are the same
String representation of object
Constructs the object from serialized data
Details
at line 61
__construct(string $pemFile, string|null $passphrase = null, boolean $validate = true, string|null $endpointEnv = null)
APNS Certificate constructor
at line 188
string
getPemFile()
Get the path to the PEM file
at line 198
boolean
hasPassphrase()
Checks if there is a passphrase to use with the certificate
at line 208
string
getPassphrase()
Passphrase to use with the PEM file
at line 218
Certificate::ENDPOINT_ENV_PRODUCTION|Certificate::ENDPOINT_ENV_SANDBOX
getEnvironment()
Get the APNS environment this certificate is associated with
at line 228
boolean
isValidated()
Check if this certificate is validated
at line 238
string
getDescription()
An as humanreadable as possible description of the certificate to identify the certificate
at line 255
DateTime|null
getValidFrom()
Get moment this certificate will become valid Note: Will return null if certificate validation was disabled
at line 266
DateTime|null
getValidTo()
Get moment this certificate will expire Note: Will return null if certificate validation was disabled
at line 279
string
getEndpoint(string $endpointType)
Get the endpoint this certificate is valid for
at line 295
string
getFingerprint()
Get a unique hash of the certificate this can be used to check if two Apns\Certificate objects are the same
at line 310
string
serialize()
String representation of object
at line 327
unserialize(string $serialized)
Constructs the object from serialized data