Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

150 lines
3.9 KiB

// V2Cert.h: interface for the CV2Certificate class.
//
// (c) Copyright Schlumberger Technology Corp., unpublished work, created
// 1999. This computer program includes Confidential, Proprietary
// Information and is a Trade Secret of Schlumberger Technology Corp. All
// use, disclosure, and/or reproduction is prohibited unless authorized
// in writing. All Rights Reserved.
//////////////////////////////////////////////////////////////////////
// Note: This file should only be included by the CCI, not directly
// by the client.
#if !defined(SLBCCI_V2CERT_H)
#define SLBCCI_V2CERT_H
#include <string>
#include <memory> // for auto_ptr
#include <slbRCObj.h>
#include "iop.h"
#include "slbarch.h"
#include "cciCard.h"
#include "ACert.h"
namespace cci {
class CV2Card;
class CCertificateInfoRecord;
class CV2Certificate
: public CAbstractCertificate
{
public:
// Types
// C'tors/D'tors
CV2Certificate(CV2Card const &rv2card,
ObjectAccess oa);
CV2Certificate(CV2Card const &rv2card,
SymbolID sidHandle,
ObjectAccess oa);
virtual
~CV2Certificate() throw();
// Operators
// Operations
virtual void
CredentialID(std::string const &rstrCredId);
virtual void
ID(std::string const &rstrId);
virtual void
Issuer(std::string const &rstrIssuer);
virtual void
Label(std::string const &rstrLabel);
static CV2Certificate *
Make(CV2Card const &rv2card,
SymbolID sidHandle,
ObjectAccess oa);
virtual void
Modifiable(bool flag);
virtual void
Subject(std::string const &rstrSubject);
virtual void
Serial(std::string const &rstrSerialNumber);
// Access
virtual std::string
CredentialID();
SymbolID
Handle() const;
virtual std::string
ID();
virtual std::string
Issuer();
virtual std::string
Label();
virtual bool
Modifiable();
virtual bool
Private();
virtual std::string
Serial();
virtual std::string
Subject();
// Predicates
protected:
// Types
// C'tors/D'tors
// Operators
// Operations
virtual void
DoDelete();
virtual void
DoValue(ZipCapsule const &rzc);
// Access
virtual ZipCapsule
DoValue();
// Predicates
virtual bool
DoEquals(CAbstractCertificate const &rhs) const;
// Variables
private:
// Types
// C'tors/D'tors
CV2Certificate(CV2Certificate const &rhs);
// not defined, copying not allowed.
// Operators
CV2Certificate &
operator=(CV2Certificate const &rhs);
// not defined, initialization not allowed.
// Operations
void
Setup(CV2Card const &rv2card);
// Access
// Predicates
// Variables
SymbolID m_sidHandle;
std::auto_ptr<CCertificateInfoRecord> m_apcir;
};
}
#endif // !defined(SLBCCI_CERT_H)