#include <AlgorithmIdentifier.h>
AlgorithmIdentifier ::= SEQUENCE { algorithm ALGORITHM.&id ({SupportedAlgorithms}), parameters ALGORITHM.&Type ({SupportedAlgorithms}{@algorithm}) OPTIONAL }
This class is generally used to review algorithm details specified in PKI-related objects such as public key certificates and CRLs. For example, an instance of CPKIFAlgorithmIdentifier can be retrieved from a certificate by invoking the SignatureAlgorithm on an instance of CPKIFCertificate.
TSP-enforcing: Yes
Definition at line 43 of file AlgorithmIdentifier.h.
Public Member Functions | |
CPKIFAlgorithmIdentifier () | |
CPKIFAlgorithmIdentifier (const CPKIFOIDPtr &oid, const CPKIFBufferPtr ¶ms) | |
CPKIFAlgorithmIdentifier (const CPKIFAlgorithmIdentifier &alg) | |
CPKIFAlgorithmIdentifier (const CPKIFOIDPtr &oid) | |
virtual | ~CPKIFAlgorithmIdentifier () |
CPKIFOIDPtr | oid () const |
bool | hasParameters () const |
CPKIFBufferPtr | parameters () const |
bool | operator== (const CPKIFAlgorithmIdentifier &rhs) const |
CPKIFAlgorithmIdentifier::CPKIFAlgorithmIdentifier | ( | ) |
Interface: External
CPKIFAlgorithmIdentifier has three constructor forms. The only constructor that takes a reference to a CACX509V3AlgorithmIdentifier permits the parameters to be set at construction time. The other two versions initialize the parameters property to NULL. The constructor version that takes a CPKIFOIDPtr will accept references to a NULL pointer.
Definition at line 42 of file AlgorithmIdentifier.cpp.
CPKIFAlgorithmIdentifier::CPKIFAlgorithmIdentifier | ( | const CPKIFOIDPtr & | oid, | |
const CPKIFBufferPtr & | params | |||
) |
Interface: External
CPKIFAlgorithmIdentifier has three constructor forms. The only constructor that takes a reference to a CACX509V3AlgorithmIdentifier permits the parameters to be set at construction time. The other two versions initialize the parameters property to NULL. The constructor version that takes a CPKIFOIDPtr will accept references to a NULL pointer.
oid | [in] A reference to a smart pointer to CPKIFOID objetc containing the Alg oid |
params | [in] A reference to a smart pointer to CPKIFBuffer object that contains optional parameters |
Definition at line 58 of file AlgorithmIdentifier.cpp.
CPKIFAlgorithmIdentifier::CPKIFAlgorithmIdentifier | ( | const CPKIFAlgorithmIdentifier & | alg | ) |
Interface: External
Copy constructor
alg | [in] Reference to CPKIFAlgorithmIdentifier object |
Definition at line 102 of file AlgorithmIdentifier.cpp.
References m_impl.
CPKIFAlgorithmIdentifier::CPKIFAlgorithmIdentifier | ( | const CPKIFOIDPtr & | oid | ) |
Interface: External
CPKIFAlgorithmIdentifier has three constructor forms. The only constructor that takes a reference to a CACX509V3AlgorithmIdentifier permits the parameters to be set at construction time. The other two versions initialize the parameters property to NULL. The constructor version that takes a CPKIFOIDPtr will accept references to a NULL pointer.
oid | [in] Reference to a smart pointer to a CPKIFOID object containing the OID that identifies the algorithm |
Definition at line 88 of file AlgorithmIdentifier.cpp.
CPKIFAlgorithmIdentifier::~CPKIFAlgorithmIdentifier | ( | ) | [virtual] |
Interface: External
The function destroys an instance of CPKIFAlgorithmIdentifier.
Definition at line 127 of file AlgorithmIdentifier.cpp.
CPKIFOIDPtr CPKIFAlgorithmIdentifier::oid | ( | ) | const |
Interface: External
This function returns a smart pointer to a CPKIFOID object containing the object identifier that identifies the algorithm or NULL if no object identifier has been specified.
Definition at line 154 of file AlgorithmIdentifier.cpp.
bool CPKIFAlgorithmIdentifier::hasParameters | ( | ) | const |
Interface: External
This function returns true if the value of the parameters property is non-NULL and false otherwise.
Definition at line 166 of file AlgorithmIdentifier.cpp.
Referenced by parameters().
CPKIFBufferPtr CPKIFAlgorithmIdentifier::parameters | ( | ) | const |
Interface: External
This function returns a smart pointer to a CPKIFBuffer object containing the DER-encoded parameters associated with an algorithm identifier object, if present, or NULL if no parameters are associated with an algorithm identifier object. The hasParameters method can be invoked prior to invoking this function to determine if parameters are available, i.e. the parameters property is non-NULL.
Definition at line 198 of file AlgorithmIdentifier.cpp.
References hasParameters().
bool CPKIFAlgorithmIdentifier::operator== | ( | const CPKIFAlgorithmIdentifier & | rhs | ) | const |
Interface: External
The operator== function compares the OIDs contained by two CPKIFAlgorithmIdentifier objects. Neither the presence nor the value of parameters is factored into the comparison. If the OIDs match, this function returns true, otherwise false is returned.
True | if matches | |
Flase | if does not match |
rhs | [in] Reference to a CPKIFAlgorithmIdentifier object to compare |
Definition at line 181 of file AlgorithmIdentifier.cpp.
References m_impl.