Documentation

AbstractTime extends ASNObject
in package

AbstractYes

Class ASNObject is the base class for all concrete ASN.1 objects.

Table of Contents

Properties

$value  : DateTime
$contentLength  : mixed
$nrOfLengthOctets  : mixed

Methods

__construct()  : mixed
__toString()  : mixed
fromBinary()  : ASNObject
Parse an instance of this class from its binary DER encoded representation.
getBinary()  : string
Encode this object using DER encoding.
getContent()  : mixed
Return the content of this object in a non encoded form.
getIdentifier()  : string
Returns all identifier octets. If an inheriting class models a tag with the long form identifier format, it MUST reimplement this method to return all octets of the identifier.
getObjectLength()  : mixed
Returns the length of the whole object (including the identifier and length octets).
getType()  : int
Return the object type octet.
getTypeName()  : mixed
Returns the name of the ASN.1 Type of this object.
calculateContentLength()  : int
Must return the number of octets of the content part.
extractTimeZoneData()  : mixed
getContentLength()  : mixed
getEncodedValue()  : string
Encode the object using DER encoding.
getLastDateTimeErrors()  : mixed
getNumberOfLengthOctets()  : mixed
parseBinaryIdentifier()  : mixed
parseContentLength()  : mixed
parseIdentifier()  : mixed
setContentLength()  : mixed
createLengthPart()  : mixed

Properties

$nrOfLengthOctets

private mixed $nrOfLengthOctets

Methods

__construct()

public __construct([mixed $dateTime = null ][, mixed $dateTimeZone = 'UTC' ]) : mixed
Parameters
$dateTime : mixed = null
$dateTimeZone : mixed = 'UTC'

fromBinary()

Parse an instance of this class from its binary DER encoded representation.

public static fromBinary(string &$binaryData[, int &$offsetIndex = 0 ]) : ASNObject
Parameters
$binaryData : string
$offsetIndex : int = 0
Tags
throws
ParserException
Return values
ASNObject

getBinary()

Encode this object using DER encoding.

public getBinary() : string
Return values
string

the full binary representation of the complete object

getContent()

Return the content of this object in a non encoded form.

public getContent() : mixed

This can be used to print the value in human readable form.

getIdentifier()

Returns all identifier octets. If an inheriting class models a tag with the long form identifier format, it MUST reimplement this method to return all octets of the identifier.

public getIdentifier() : string
Tags
throws
LogicException

If the identifier format is long form

Return values
string

Identifier as a set of octets

getObjectLength()

Returns the length of the whole object (including the identifier and length octets).

public getObjectLength() : mixed

getType()

Return the object type octet.

public abstract getType() : int

This should use the class constants of Identifier.

Tags
see
Identifier
Return values
int

calculateContentLength()

Must return the number of octets of the content part.

protected abstract calculateContentLength() : int
Return values
int

extractTimeZoneData()

protected static extractTimeZoneData(mixed &$binaryData, mixed &$offsetIndex, DateTime $dateTime) : mixed
Parameters
$binaryData : mixed
$offsetIndex : mixed
$dateTime : DateTime

getContentLength()

protected getContentLength() : mixed

getLastDateTimeErrors()

protected getLastDateTimeErrors() : mixed

getNumberOfLengthOctets()

protected getNumberOfLengthOctets([mixed $contentLength = null ]) : mixed
Parameters
$contentLength : mixed = null

parseBinaryIdentifier()

protected static parseBinaryIdentifier(mixed $binaryData, mixed &$offsetIndex) : mixed
Parameters
$binaryData : mixed
$offsetIndex : mixed

parseContentLength()

protected static parseContentLength(mixed &$binaryData, mixed &$offsetIndex[, mixed $minimumLength = 0 ]) : mixed
Parameters
$binaryData : mixed
$offsetIndex : mixed
$minimumLength : mixed = 0

parseIdentifier()

protected static parseIdentifier(mixed $identifierOctet, mixed $expectedIdentifier, mixed $offsetForExceptionHandling) : mixed
Parameters
$identifierOctet : mixed
$expectedIdentifier : mixed
$offsetForExceptionHandling : mixed

setContentLength()

protected setContentLength(mixed $newContentLength) : mixed
Parameters
$newContentLength : mixed

createLengthPart()

private createLengthPart() : mixed

        
On this page

Search results