CPKIFPrivateKeyUsage Class Reference

#include <PrivateKeyUsage.h>

Inheritance diagram for CPKIFPrivateKeyUsage:

Inheritance graph
[legend]
Collaboration diagram for CPKIFPrivateKeyUsage:

Collaboration graph
[legend]

List of all members.


Detailed Description

CPKIFPrivateKeyUsage provides access to information found in a private key usage extension. The ASN.1 definition used by PKIF is given below:
PrivateKeyUsagePeriod ::= SEQUENCE 
{
    notBefore  [0] GeneralizedTime OPTIONAL,
    notAfter [  1] GeneralizedTime OPTIONAL 
}

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 42 of file PrivateKeyUsage.h.


Public Member Functions

 CPKIFPrivateKeyUsage ()
 CPKIFPrivateKeyUsage (const bool &criticality, const CPKIFBufferPtr &ext)
virtual ~CPKIFPrivateKeyUsage ()
const CPKIFOIDPtr oid () const
const char * NotAfter () const
const char * NotBefore () const
CPKIFBufferPtr value () const

Static Public Attributes

static char extOID [] = "2.5.29.16"

Constructor & Destructor Documentation

CPKIFPrivateKeyUsage::CPKIFPrivateKeyUsage (  ) 

Interface: External

Default constructor

Returns:
None

Definition at line 38 of file PrivateKeyUsage.cpp.

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

Interface: External

This constructor is internally invoked; 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 internally invoked; 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 

Definition at line 85 of file PrivateKeyUsage.cpp.

References CACASNWRAPPER_CREATE.

CPKIFPrivateKeyUsage::~CPKIFPrivateKeyUsage (  )  [virtual]

Interface: External

The function destroys an instance of CPKIFPrivateKeyUsage.

Returns:
None

Definition at line 117 of file PrivateKeyUsage.cpp.


Member Function Documentation

const CPKIFOIDPtr CPKIFPrivateKeyUsage::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 162 of file PrivateKeyUsage.cpp.

References extOID.

const char * CPKIFPrivateKeyUsage::NotAfter (  )  const

Interface: External

This function returns the not after time from a private key usage period extension.

Returns:
The not after time from a private key usage period extension.

Definition at line 132 of file PrivateKeyUsage.cpp.

const char * CPKIFPrivateKeyUsage::NotBefore (  )  const

Interface: External

This function returns the not before time from a private key usage period extension.

Returns:
The not before time from a private key usage period extension.

Definition at line 146 of file PrivateKeyUsage.cpp.

CPKIFBufferPtr CPKIFPrivateKeyUsage::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 177 of file PrivateKeyUsage.cpp.


Member Data Documentation

char CPKIFPrivateKeyUsage::extOID = "2.5.29.16" [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 "2.5.29.16".

Definition at line 53 of file PrivateKeyUsage.h.

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


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

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