|
libcamgm
|
#include <LiteralValues.hpp>
Public Member Functions | |
| LiteralValue () | |
| LiteralValue (const std::string &type, const std::string &value) | |
| LiteralValue (const std::string &value) | |
| LiteralValue (const LiteralValue &value) | |
| LiteralValue & | operator= (const LiteralValue &value) |
| virtual | ~LiteralValue () |
| void | setLiteral (const std::string &type, const std::string &value) |
| void | setValue (const std::string &value) |
| std::string | getType () const |
| std::string | getValue () const |
| virtual bool | valid () const |
| virtual std::vector< std::string > | verify () const |
| virtual std::vector< std::string > | dump () const |
| std::string | toString () const |
| std::string | commit2Config (CA &ca, Type type, uint32_t num) const |
Private Attributes | |
| ca_mgm::RWCOW_pointer < LiteralValueImpl > | m_impl |
Friends | |
| bool | operator== (const LiteralValue &l, const LiteralValue &r) |
| bool | operator< (const LiteralValue &l, const LiteralValue &r) |
A Literal Value is a pair of a type and a value Valid types are: URI, DNS, RID, IP, email, 1.3.6.1.4.1.311.20.2.3 (ms-upn) and 1.3.6.1.5.2.2 (KRB5PrincipalName)
| ca_mgm::LiteralValue::LiteralValue | ( | ) |
| ca_mgm::LiteralValue::LiteralValue | ( | const std::string & | type, |
| const std::string & | value | ||
| ) |
Constructor
| type | Valid types are: URI, DNS, RID, IP, email, 1.3.6.1.4.1.311.20.2.3 and 1.3.6.1.5.2.2 |
| value | a value for the type |
| ca_mgm::LiteralValue::LiteralValue | ( | const std::string & | value | ) |
Constructor
| value | in the form <type>:<value> Valid types are: URI, DNS, RID, IP, email, 1.3.6.1.4.1.311.20.2.3 and 1.3.6.1.5.2.2 |
| ca_mgm::LiteralValue::LiteralValue | ( | const LiteralValue & | value | ) |
|
virtual |
Return the string for the configuration. This method silently ignore unsupported types like othername.
|
virtual |
| std::string ca_mgm::LiteralValue::getType | ( | ) | const |
Return the type of this Literal Value
| std::string ca_mgm::LiteralValue::getValue | ( | ) | const |
Return the value of this Literal Value
| LiteralValue& ca_mgm::LiteralValue::operator= | ( | const LiteralValue & | value | ) |
| void ca_mgm::LiteralValue::setLiteral | ( | const std::string & | type, |
| const std::string & | value | ||
| ) |
Set new values
| type | Valid types are: URI, DNS, RID, IP, email, 1.3.6.1.4.1.311.20.2.3 and 1.3.6.1.5.2.2 |
| value | a value for the type |
| void ca_mgm::LiteralValue::setValue | ( | const std::string & | value | ) |
Set new values
| value | in the form <type>:<value> Valid types are: URI, DNS, RID, IP, email, 1.3.6.1.4.1.311.20.2.3 and 1.3.6.1.5.2.2 |
| std::string ca_mgm::LiteralValue::toString | ( | ) | const |
Return the LiteralValue in the form <type>:<value>
|
virtual |
|
virtual |
|
friend |
|
friend |
|
private |
1.8.8