#include <OID.h>
TSP-enforcing: Yes
Definition at line 35 of file OID.h.
Public Member Functions | |
CPKIFOID () | |
CPKIFOID (const unsigned int oid[], const unsigned int size) | |
CPKIFOID (const CPKIFOID &alg) | |
CPKIFOID (const CPKIFStringPtr &oidStr) | |
CPKIFOID (const CPKIFBufferPtr &oidBuff) | |
CPKIFOID (const std::string &oidStr) | |
virtual | ~CPKIFOID () |
conv. def of the above CPKIFStringPtr version | |
const char * | ToString () const |
bool | operator== (const CPKIFOID &oid) const |
bool | operator== (const CPKIFOIDPtr &oid) const |
bool | operator== (const char *strOID) const |
bool | operator!= (const CPKIFOID &oid) const |
bool | operator!= (CPKIFOIDPtr &oid) const |
changed to & - 7/28/2004 | |
bool | operator!= (const char *strOID) const |
CPKIFBufferPtr | rawOID () const |
CPKIFOID::CPKIFOID | ( | ) |
CPKIFOID::CPKIFOID | ( | const unsigned int | oid[], | |
const unsigned int | size | |||
) |
Interface: Subsystem
Several constructors that take different parameters are provided to create a CPKIFOID object. The version that takes no parameters is used to create permanently empty OID objects (i.e. no means are provided to populate or alter a CPKIFOID object after creation). The constructor that takes an ASN1OBJID object is used internally during object processing and is not used by applications. The copy constructor simply creates a new CPKIFOID object containing the same OID value. The CPKIFStringPtr and std::string* variants can be used to create a CPKIFOID object given a string representation of an OID (e.g. 1.2.3.4.5). Typically, applications will create CPKIFOID objects as follows:
create a CPKIFOIDPtr containing a policy OID CPKIFOIDPtr policy(new CPKIFOID(new std::string("1.2.3.4.5")));
associated the policy OID with a timestamp request CPKIFTimeStampRequest req; req.SetPolicy(policy);
oid | [in] int arrar containing the oid |
size | [in] size onf the int array |
CPKIFOID::CPKIFOID | ( | const CPKIFOID & | alg | ) |
Interface: Subsystem
Several constructors that take different parameters are provided to create a CPKIFOID object. The version that takes no parameters is used to create permanently empty OID objects (i.e. no means are provided to populate or alter a CPKIFOID object after creation). The constructor that takes an ASN1OBJID object is used internally during object processing and is not used by applications. The copy constructor simply creates a new CPKIFOID object containing the same OID value. The CPKIFStringPtr and std::string* variants can be used to create a CPKIFOID object given a string representation of an OID (e.g. 1.2.3.4.5). Typically, applications will create CPKIFOID objects as follows:
create a CPKIFOIDPtr containing a policy OID CPKIFOIDPtr policy(new CPKIFOID(new std::string("1.2.3.4.5")));
associated the policy OID with a timestamp request CPKIFTimeStampRequest req; req.SetPolicy(policy);
alg | [in] A erfernce to CPKIFOID object |
Definition at line 190 of file OID.cpp.
References ConvertStringToASN1OBJID(), and m_impl.
CPKIFOID::CPKIFOID | ( | const CPKIFStringPtr & | oidStr | ) |
Interface: Subsystem
Several constructors that take different parameters are provided to create a CPKIFOID object. The version that takes no parameters is used to create permanently empty OID objects (i.e. no means are provided to populate or alter a CPKIFOID object after creation). The constructor that takes an ASN1OBJID object is used internally during object processing and is not used by applications. The copy constructor simply creates a new CPKIFOID object containing the same OID value. The CPKIFStringPtr and std::string* variants can be used to create a CPKIFOID object given a string representation of an OID (e.g. 1.2.3.4.5). Typically, applications will create CPKIFOID objects as follows:
create a CPKIFOIDPtr containing a policy OID CPKIFOIDPtr policy(new CPKIFOID(new std::string("1.2.3.4.5")));
associated the policy OID with a timestamp request CPKIFTimeStampRequest req; req.SetPolicy(policy);
CPKIFException(ASN1_INVALID_OID) |
oidStr | [in] A smart pointer to CPKIFString object. |
Definition at line 232 of file OID.cpp.
References ASN1_INVALID_OID, ConvertStringToASN1OBJID(), and TOOLKIT_ASN.
CPKIFOID::CPKIFOID | ( | const CPKIFBufferPtr & | oidBuff | ) |
Interface: Subsystem
This constructor takes an encoded OID and converts it into CPKIFOID
CPKIFException(ASN1_INVALID_OID) |
oidBuff | [in] A pointer to an encoded OID |
Definition at line 290 of file OID.cpp.
References CACASNWRAPPER_CREATE, and CopyOID().
CPKIFOID::CPKIFOID | ( | const std::string & | oidStr | ) |
Interface: Subsystem
Several constructors that take different parameters are provided to create a CPKIFOID object. The version that takes no parameters is used to create permanently empty OID objects (i.e. no means are provided to populate or alter a CPKIFOID object after creation). The constructor that takes an ASN1OBJID object is used internally during object processing and is not used by applications. The copy constructor simply creates a new CPKIFOID object containing the same OID value. The CPKIFStringPtr and std::string* variants can be used to create a CPKIFOID object given a string representation of an OID (e.g. 1.2.3.4.5). Typically, applications will create CPKIFOID objects as follows:
create a CPKIFOIDPtr containing a policy OID CPKIFOIDPtr policy(new CPKIFOID(new std::string("1.2.3.4.5")));
associated the policy OID with a timestamp request CPKIFTimeStampRequest req; req.SetPolicy(policy);
CPKIFException(ASN1_INVALID_OID) |
oidStr | [in] A pointer to a NULL terminated string |
Definition at line 268 of file OID.cpp.
References ASN1_INVALID_OID, ConvertStringToASN1OBJID(), and TOOLKIT_ASN.
CPKIFOID::~CPKIFOID | ( | ) | [virtual] |
const char * CPKIFOID::ToString | ( | ) | const |
Interface: Subsystem
This function returns a pointer to a buffer containing a NULL-terminated string representation of the object identifier. The pointer is valid for the life of the associated CPKIFOID object.
CPKIFException(ASN1_INVALID_OID) |
Definition at line 332 of file OID.cpp.
References ASN1_INVALID_OID, m_impl, and TOOLKIT_ASN.
Referenced by CPKIFOCSPRequest::Encode().
bool CPKIFOID::operator== | ( | const CPKIFOID & | oid | ) | const |
Interface: Subsystem
This function returns true if the object identifier value passed as a parameter matches the value of the instance on which this function was invoked.
oid | [in] Reference to a CPKIFOID or a smart pointer to a CPKIFOID containing the object identifier to compare |
Definition at line 411 of file OID.cpp.
References m_impl.
Referenced by operator!=().
bool CPKIFOID::operator== | ( | const CPKIFOIDPtr & | oid | ) | const |
Interface: Subsystem
This function returns true if the object identifier value passed as a parameter matches the value of the instance on which this function was invoked.
bool CPKIFOID::operator== | ( | const char * | strOID | ) | const |
Interface: Subsystem
This function returns true if the object identifier value passed as a parameter matches the value of the instance on which this function was invoked.
strOID | [in] Pointer to a buffer containing a NULL-terminated string representation of the object identifier to compare |
bool CPKIFOID::operator!= | ( | const CPKIFOID & | oid | ) | const |
Interface: Subsystem
The operator can accept three kinds of parameters CPKIFOID reference, a char string or a CPKIFOID smart pointer.
oid | [in] Reference to a CPKIFOID containing the object identifier to compare |
Definition at line 435 of file OID.cpp.
References operator==().
bool CPKIFOID::operator!= | ( | CPKIFOIDPtr & | oid | ) | const |
changed to & - 7/28/2004
Interface: Subsystem
The operator can accept three kinds of parameters CPKIFOID reference, a char string or a CPKIFOID smart pointer.
oid | [in] Reference to a pointer to CPKIFOID containing the object identifier to comp |
Definition at line 450 of file OID.cpp.
References operator==().
bool CPKIFOID::operator!= | ( | const char * | strOID | ) | const |
Interface: Subsystem
The operator can accept three kinds of parameters CPKIFOID reference, a char string or a CPKIFOID smart pointer.
strOID | [in] [in] Pointer to a buffer containing a NULL-terminated string representation of the object identifier to compare |
Definition at line 463 of file OID.cpp.
References operator==().
CPKIFBufferPtr CPKIFOID::rawOID | ( | ) | const |
Interface: Subsystem
This function returns a pointer to an internally used structure. This function is not invoked by applications.
Definition at line 127 of file OID.cpp.
References CACASNWRAPPER_CREATE.