limal-ca-mgm
Public Types | Public Member Functions
limal::ca_mgm::NsCertTypeExt Class Reference

#include <BitExtensions.hpp>

Inheritance diagram for limal::ca_mgm::NsCertTypeExt:
limal::ca_mgm::BitExtension limal::ca_mgm::ExtensionBase

List of all members.

Public Types

enum  NsCertType {
  client = 0x0080, server = 0x0040, email = 0x0020, objsign = 0x0010,
  reserved = 0x0008, sslCA = 0x0004, emailCA = 0x0002, objCA = 0x0001
}

Public Member Functions

 NsCertTypeExt ()
 NsCertTypeExt (CAConfig *caConfig, Type type)
 NsCertTypeExt (BLOCXX_NAMESPACE::UInt32 nsCertTypes)
 NsCertTypeExt (const NsCertTypeExt &extension)
virtual ~NsCertTypeExt ()
NsCertTypeExtoperator= (const NsCertTypeExt &extension)
void setNsCertType (BLOCXX_NAMESPACE::UInt32 nsCertTypes)
BLOCXX_NAMESPACE::UInt32 getNsCertType () const
bool isEnabledFor (NsCertType nsCertType) 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

Detailed Description

This extension describes the usage of this certificate (Netscape specific)

Examples:

CreateCertificate.cpp.


Member Enumeration Documentation

Enumerator:
client 
server 
email 
objsign 
reserved 
sslCA 
emailCA 
objCA 

Constructor & Destructor Documentation

limal::ca_mgm::NsCertTypeExt::NsCertTypeExt ( )
limal::ca_mgm::NsCertTypeExt::NsCertTypeExt ( CAConfig caConfig,
Type  type 
)
limal::ca_mgm::NsCertTypeExt::NsCertTypeExt ( BLOCXX_NAMESPACE::UInt32  nsCertTypes)

Create an object with a specific certificate type set

limal::ca_mgm::NsCertTypeExt::NsCertTypeExt ( const NsCertTypeExt extension)
virtual limal::ca_mgm::NsCertTypeExt::~NsCertTypeExt ( ) [virtual]

Member Function Documentation

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

Write the informations of this object back to the configuration file

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

Implements limal::ca_mgm::BitExtension.

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

Return the content of this object for debugging

Implements limal::ca_mgm::BitExtension.

BLOCXX_NAMESPACE::UInt32 limal::ca_mgm::NsCertTypeExt::getNsCertType ( ) const

Return the certificate type

bool limal::ca_mgm::NsCertTypeExt::isEnabledFor ( NsCertType  nsCertType) const

Return true if the specified bit is set

NsCertTypeExt& limal::ca_mgm::NsCertTypeExt::operator= ( const NsCertTypeExt extension)
void limal::ca_mgm::NsCertTypeExt::setNsCertType ( BLOCXX_NAMESPACE::UInt32  nsCertTypes)

Set a new certificate type

virtual bool limal::ca_mgm::NsCertTypeExt::valid ( ) const [virtual]

Check if this object is valid

Returns:
true if this object is valid, otherwise false

Implements limal::ca_mgm::BitExtension.

virtual BLOCXX_NAMESPACE::StringArray limal::ca_mgm::NsCertTypeExt::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::BitExtension.


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