Net_DNS2
[ class tree: Net_DNS2 ] [ index: Net_DNS2 ] [ all elements ]

Class: Net_DNS2_RR_CERT

Source Location: /Net_DNS2-1.4.0/Net/DNS2/RR/CERT.php

Class Overview

Net_DNS2_RR
   |
   --Net_DNS2_RR_CERT

CERT Resource Record - RFC4398 section 2


Author(s):

Variables

Methods


Inherited Variables

Inherited Methods

Class: Net_DNS2_RR

Net_DNS2_RR::__construct()
Constructor - builds a new Net_DNS2_RR object
Net_DNS2_RR::buildString()
builds an array of strings from an array of chunks of text split by spaces
Net_DNS2_RR::cleanString()
cleans up some RR data
Net_DNS2_RR::formatString()
return a formatted string; if a string has spaces in it, then return it with double quotes around it, otherwise, return it as it was passed in.
Net_DNS2_RR::fromString()
parses a standard RR format lines, as defined by rfc1035 (kinda)
Net_DNS2_RR::get()
returns a binary packed DNS RR object
Net_DNS2_RR::parse()
parses a binary packet, and returns the appropriate Net_DNS2_RR object, based on the RR type of the binary content.
Net_DNS2_RR::rrFromString()
abstract definition - parses a RR from a standard DNS config line
Net_DNS2_RR::rrGet()
abstract definition - returns a binary packet DNS RR object
Net_DNS2_RR::rrSet()
abstract definition - sets a Net_DNS2_RR from a Net_DNS2_Packet object
Net_DNS2_RR::rrToString()
abstract definition - method to return a RR as a string; not to be confused with the __toString() magic method.
Net_DNS2_RR::set()
builds a new Net_DNS2_RR object
Net_DNS2_RR::__toString()
magic __toString() method to return the Net_DNS2_RR object object as a string

Class Details

[line 72]
CERT Resource Record - RFC4398 section 2

  1. 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | format | key tag | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | algorithm | / +---------------+ certificate or CRL / / / +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-|



[ Top ]


Class Variables

$algorithm =

[line 118]

  • Access: public

Type:   mixed


[ Top ]

$certificate =

[line 123]

  • Access: public

Type:   mixed


[ Top ]

$cert_format_id_to_name = array(

        self::CERT_FORMAT_RES       => 'Reserved',
        self::CERT_FORMAT_PKIX      => 'PKIX',
        self::CERT_FORMAT_SPKI      => 'SPKI',
        self::CERT_FORMAT_PGP       => 'PGP',
        self::CERT_FORMAT_IPKIX     => 'IPKIX',
        self::CERT_FORMAT_ISPKI     => 'ISPKI',
        self::CERT_FORMAT_IPGP      => 'IPGP',
        self::CERT_FORMAT_ACPKIX    => 'ACPKIX',
        self::CERT_FORMAT_IACPKIX   => 'IACPKIX',
        self::CERT_FORMAT_URI       => 'URI',
        self::CERT_FORMAT_OID       => 'OID'
    )

[line 90]

  • Access: public

Type:   mixed


[ Top ]

$cert_format_name_to_id = array()

[line 89]

  • Access: public

Type:   mixed


[ Top ]

$format =

[line 108]

  • Access: public

Type:   mixed


[ Top ]

$keytag =

[line 113]

  • Access: public

Type:   mixed


[ Top ]



Method Detail

__construct (Constructor)   [line 135]

Net_DNS2_RR_CERT __construct( [Net_DNS2_Packet &$packet = null], [ $rr = null])

we have our own constructor so that we can load our certificate information for parsing.
  • Access: public

Overrides Net_DNS2_RR::__construct() (Constructor - builds a new Net_DNS2_RR object)

Parameters:

Net_DNS2_Packet   &$packet     a Net_DNS2_Packet packet to parse the RR from
array   $rr     a array with parsed RR values

[ Top ]

rrFromString   [line 167]

boolean rrFromString( $rdata)

parses the rdata portion from a standard DNS config line
  • Access: protected

Overrides Net_DNS2_RR::rrFromString() (abstract definition - parses a RR from a standard DNS config line)

Parameters:

array   $rdata     a string split line of values for the rdata

[ Top ]

rrGet   [line 269]

mixed rrGet( Net_DNS2_Packet &$packet)

returns the rdata portion of the DNS packet
  • Return: either returns a binary packed string or null on failure
  • Access: protected

Overrides Net_DNS2_RR::rrGet() (abstract definition - returns a binary packet DNS RR object)

Parameters:

Net_DNS2_Packet   &$packet     a Net_DNS2_Packet packet use for compressed names

[ Top ]

rrSet   [line 234]

boolean rrSet( Net_DNS2_Packet &$packet)

parses the rdata of the Net_DNS2_Packet object
  • Access: protected

Overrides Net_DNS2_RR::rrSet() (abstract definition - sets a Net_DNS2_RR from a Net_DNS2_Packet object)

Parameters:

Net_DNS2_Packet   &$packet     a Net_DNS2_Packet packet to parse the RR from

[ Top ]

rrToString   [line 152]

string rrToString( )

method to return the rdata portion of the packet as a string
  • Access: protected

Overrides Net_DNS2_RR::rrToString() (abstract definition - method to return a RR as a string; not to be confused with the __toString() magic method.)
[ Top ]


Documentation generated on Mon, 15 Dec 2014 05:30:08 +0000 by phpDocumentor 1.4.3. PEAR Logo Copyright © PHP Group 2004.