limal-ca-mgm
Public Member Functions | Private Attributes | Friends
limal::ca_mgm::LiteralValue Class Reference

#include <LiteralValues.hpp>

List of all members.

Public Member Functions

 LiteralValue ()
 LiteralValue (const String &type, const String &value)
 LiteralValue (const String &value)
 LiteralValue (const LiteralValue &value)
LiteralValueoperator= (const LiteralValue &value)
virtual ~LiteralValue ()
void setLiteral (const String &type, const String &value)
void setValue (const String &value)
String getType () const
String getValue () const
virtual bool valid () const
virtual
BLOCXX_NAMESPACE::StringArray 
verify () const
virtual
BLOCXX_NAMESPACE::StringArray 
dump () const
String toString () const
BLOCXX_NAMESPACE::String commit2Config (CA &ca, Type type, BLOCXX_NAMESPACE::UInt32 num) const

Private Attributes

BLOCXX_NAMESPACE::COWIntrusiveReference
< LiteralValueImpl > 
m_impl

Friends

bool operator== (const LiteralValue &l, const LiteralValue &r)
bool operator< (const LiteralValue &l, const LiteralValue &r)

Detailed Description

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)

Examples:

CreateCertificate.cpp.


Constructor & Destructor Documentation

limal::ca_mgm::LiteralValue::LiteralValue ( )
limal::ca_mgm::LiteralValue::LiteralValue ( const String type,
const String value 
)

Constructor

Parameters:
typeValid 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
valuea value for the type
limal::ca_mgm::LiteralValue::LiteralValue ( const String value)

Constructor

Parameters:
valuein 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
limal::ca_mgm::LiteralValue::LiteralValue ( const LiteralValue value)
virtual limal::ca_mgm::LiteralValue::~LiteralValue ( ) [virtual]

Member Function Documentation

BLOCXX_NAMESPACE::String limal::ca_mgm::LiteralValue::commit2Config ( CA ca,
Type  type,
BLOCXX_NAMESPACE::UInt32  num 
) const

Return the string for the configuration. This method silently ignore unsupported types like othername.

virtual BLOCXX_NAMESPACE::StringArray limal::ca_mgm::LiteralValue::dump ( ) const [virtual]
String limal::ca_mgm::LiteralValue::getType ( ) const

Return the type of this Literal Value

String limal::ca_mgm::LiteralValue::getValue ( ) const

Return the value of this Literal Value

LiteralValue& limal::ca_mgm::LiteralValue::operator= ( const LiteralValue value)
void limal::ca_mgm::LiteralValue::setLiteral ( const String type,
const String value 
)

Set new values

Parameters:
typeValid 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
valuea value for the type
void limal::ca_mgm::LiteralValue::setValue ( const String value)

Set new values

Parameters:
valuein 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
String limal::ca_mgm::LiteralValue::toString ( ) const

Return the LiteralValue in the form <type>:<value>

virtual bool limal::ca_mgm::LiteralValue::valid ( ) const [virtual]
virtual BLOCXX_NAMESPACE::StringArray limal::ca_mgm::LiteralValue::verify ( ) const [virtual]

Friends And Related Function Documentation

bool operator< ( const LiteralValue l,
const LiteralValue r 
) [friend]
bool operator== ( const LiteralValue l,
const LiteralValue r 
) [friend]

Member Data Documentation

BLOCXX_NAMESPACE::COWIntrusiveReference<LiteralValueImpl> limal::ca_mgm::LiteralValue::m_impl [private]

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