CPKIFAuthorityInfoAccess Class Reference

#include <AuthorityInfoAccess.h>

Inheritance diagram for CPKIFAuthorityInfoAccess:

Inheritance graph
[legend]
Collaboration diagram for CPKIFAuthorityInfoAccess:

Collaboration graph
[legend]

List of all members.


Detailed Description

CPKIFAuthorityInfoAccess provides access to authority information access (AIA) extensions. The ASN.1 definition used by PKIF is given below:
AuthorityInfoAccessSyntax  ::= SEQUENCE SIZE (1..MAX) OF AccessDescription 
AccessDescription  ::=  SEQUENCE 
{
    accessMethod          OBJECT IDENTIFIER,
    accessLocation        GeneralName  
}

For details on accessing extensions in a certificate or CRL, see the sections on CPKIFCertificate and CPKIFCRL.

PKIF does not provide a means of encoding extensions. This class is used to parse extensions present in encoded objects, e.g. public-key certificates.

TSP-enforcing: No

Definition at line 48 of file AuthorityInfoAccess.h.


Public Member Functions

 CPKIFAuthorityInfoAccess ()
 CPKIFAuthorityInfoAccess (const bool &criticality, const CPKIFBufferPtr &ext)
virtual ~CPKIFAuthorityInfoAccess ()
const CPKIFOIDPtr oid () const
CPKIFBufferPtr value () const
CPKIFAccessDescriptionListPtr GetAccessDescriptions () const

Static Public Attributes

static char extOID [] = "1.3.6.1.5.5.7.1.1"

Constructor & Destructor Documentation

CPKIFAuthorityInfoAccess::CPKIFAuthorityInfoAccess (  ) 

Interface: External

Default constructor

Returns:
None

Definition at line 45 of file AuthorityInfoAccess.cpp.

CPKIFAuthorityInfoAccess::CPKIFAuthorityInfoAccess ( const bool &  criticality,
const CPKIFBufferPtr &  ext 
)

Interface: External

This constructor is internally invoked when parsing an extension; it will throw a std::bad_alloc exception if allocation of memory fails or ASN.1 decoding errors if the extension cannot be parsed.

Returns:
None
Exceptions:
std::bad_alloc Interface: External
This constructor is called by CPKIFAuthorityInfoAccessFactory::create().

Returns:
None Interface: External
This constructor is called by CPKIFAuthorityInfoAccessFactory::create().

Returns:
None
Parameters:
criticality  [in] Boolean value indicating criticallity of the extension
ext  [in] A reference to a smart pointer to CPKIFBuffer object that contains CPKIFAuthorityInfoAccess extension

Definition at line 115 of file AuthorityInfoAccess.cpp.

References CACASNWRAPPER_CREATE.

CPKIFAuthorityInfoAccess::~CPKIFAuthorityInfoAccess (  )  [virtual]

Interface: External

The function destroys an instance of CPKIFAuthorityInfoAccess.

Returns:
None

Definition at line 170 of file AuthorityInfoAccess.cpp.


Member Function Documentation

const CPKIFOIDPtr CPKIFAuthorityInfoAccess::oid (  )  const [virtual]

Interface: External

This function returns a smart pointer to a CPKIFOID object containing the object identifier associated with this type of extension.

Returns:
A smart pointer to a CPKIFOID object containing the object identifier associated with this type of extension

Reimplemented from CPKIFX509Extension.

Definition at line 186 of file AuthorityInfoAccess.cpp.

References extOID.

CPKIFBufferPtr CPKIFAuthorityInfoAccess::value (  )  const [virtual]

Interface: External

This function returns a smart pointer to a CPKIFBuffer object containing value of the extension.

Returns:
A smart pointer to a CPKIFBuffer object containing value of the extension.

Reimplemented from CPKIFX509Extension.

Definition at line 213 of file AuthorityInfoAccess.cpp.

CPKIFAccessDescriptionListPtr CPKIFAuthorityInfoAccess::GetAccessDescriptions (  )  const

Interface: External

This function returns a smart pointer to a list of access descriptions associated with the AIA extension or NULL.

Returns:
A smart pointer to a list of access descriptions associated with the AIA extension or NULL.

Definition at line 201 of file AuthorityInfoAccess.cpp.

Referenced by operator<<(), and CPKIFGeneralCRLDetailsPanel::PopulateListExtensions().


Member Data Documentation

char CPKIFAuthorityInfoAccess::extOID = "1.3.6.1.5.5.7.1.1" [static]

The extOID member of each extension class provides a NULL terminated string representation of the object identifier that identifies the extension. The value defined for this class is "1.3.6.1.5.5.7.1.1".

Definition at line 60 of file AuthorityInfoAccess.h.

Referenced by oid(), and CPKIFAuthorityInfoAccessFactory::refOID().


The documentation for this class was generated from the following files:

Generated on Mon Nov 15 11:19:51 2010 for PublicKeyInfrastructureFramework(PKIF) by  doxygen 1.5.6