limal::ca_mgm::BasicConstraintsExt Class Reference

#include <BasicConstraintsExtension.hpp>

Inheritance diagram for limal::ca_mgm::BasicConstraintsExt:
limal::ca_mgm::ExtensionBase

List of all members.

Public Member Functions

 BasicConstraintsExt ()
 BasicConstraintsExt (CAConfig *caConfig, Type type)
 BasicConstraintsExt (bool isCa, BLOCXX_NAMESPACE::Int32 pathLength=-1)
 BasicConstraintsExt (const BasicConstraintsExt &extension)
virtual ~BasicConstraintsExt ()
BasicConstraintsExtoperator= (const BasicConstraintsExt &extension)
void setBasicConstraints (bool isCa, BLOCXX_NAMESPACE::Int32 pathLength=-1)
bool isCA () const
BLOCXX_NAMESPACE::Int32 getPathLength () const
virtual void commit2Config (CA &ca, Type type) const
virtual bool valid () const
virtual
BLOCXX_NAMESPACE::StringArray 
verify () const
virtual
BLOCXX_NAMESPACE::StringArray 
dump () const

Private Attributes

BLOCXX_NAMESPACE::COWIntrusiveReference
< BasicConstraintsExtImpl > 
m_impl

Detailed Description

If the ca parameter is set to true this certificate is a Certificate Authority. The pathlen parameter indicates the maximum number of CAs that can appear below this one in a chain.

Examples:

CreateCertificate.cpp.


Constructor & Destructor Documentation

limal::ca_mgm::BasicConstraintsExt::BasicConstraintsExt (  ) 
limal::ca_mgm::BasicConstraintsExt::BasicConstraintsExt ( CAConfig caConfig,
Type  type 
)
limal::ca_mgm::BasicConstraintsExt::BasicConstraintsExt ( bool  isCa,
BLOCXX_NAMESPACE::Int32  pathLength = -1 
)
limal::ca_mgm::BasicConstraintsExt::BasicConstraintsExt ( const BasicConstraintsExt extension  ) 
virtual limal::ca_mgm::BasicConstraintsExt::~BasicConstraintsExt (  )  [virtual]

Member Function Documentation

virtual void limal::ca_mgm::BasicConstraintsExt::commit2Config ( CA ca,
Type  type 
) const [virtual]

Write the informations of this object back to the configuration file

Parameters:
ca the CA object which holds the config object
type the type describes the section of the config file

Implements limal::ca_mgm::ExtensionBase.

virtual BLOCXX_NAMESPACE ::StringArray limal::ca_mgm::BasicConstraintsExt::dump (  )  const [virtual]

Return the content of this object for debugging

Reimplemented from limal::ca_mgm::ExtensionBase.

BLOCXX_NAMESPACE ::Int32 limal::ca_mgm::BasicConstraintsExt::getPathLength (  )  const

Return the path length (-1 means no path length set)

bool limal::ca_mgm::BasicConstraintsExt::isCA (  )  const

Return the ca parameter

BasicConstraintsExt& limal::ca_mgm::BasicConstraintsExt::operator= ( const BasicConstraintsExt extension  ) 
void limal::ca_mgm::BasicConstraintsExt::setBasicConstraints ( bool  isCa,
BLOCXX_NAMESPACE::Int32  pathLength = -1 
)

Set the ca parameter and the path length.

Parameters:
isCa set it to true if you want a CA, otherwise false.
pathLength maximum number of CAs that can appear below this one in a chain; -1 means no path Length is set.
virtual bool limal::ca_mgm::BasicConstraintsExt::valid (  )  const [virtual]

Check if this object is valid

Returns:
true if this object is valid, otherwise false

Implements limal::ca_mgm::ExtensionBase.

virtual BLOCXX_NAMESPACE ::StringArray limal::ca_mgm::BasicConstraintsExt::verify (  )  const [virtual]

Verify this object and return an Array with all error messages.

Returns:
Array with error messages. If this Array is empty this object is valid

Implements limal::ca_mgm::ExtensionBase.


Member Data Documentation

BLOCXX_NAMESPACE ::COWIntrusiveReference<BasicConstraintsExtImpl> limal::ca_mgm::BasicConstraintsExt::m_impl [private]

Reimplemented from limal::ca_mgm::ExtensionBase.


The documentation for this class was generated from the following file:
Generated on Sun Aug 1 09:44:13 2010 for limal-ca-mgm by  doxygen 1.6.3