CCMSX509AttributeCertificateInfo Class Reference

class CCMSX509AttributeCertificateInfo : public CCMSSequence

X.509 AttributeCertificateInfo type module

ASN.1 definition: AttributeCertificateInfo ::= SEQUENCE { version Version DEFAULT v1, subject CHOICE {baseCertificateID [0] IssuerSerial, -- associated with a Public Key Certificate-- subjectName [1] GeneralNames}, -- associated with a name issuer GeneralNames, -- CA issuing the attribute certificate signature AlgorithmIdentifier, serialNumber CertificateSerialNumber, attCertValidityPeriod AttCertValidityPeriod, attributes SEQUENCE OF Attribute, issuerUniqueID UniqueIdentifier OPTIONAL, extensions Extensions OPTIONAL }

CertificateSerialNumber ::= INTEGER

AttCertValidityPeriod ::= SEQUENCE { notBeforeTime GeneralizedTime, notAfterTime GeneralizedTime }

cms.lib
Since
3.0

Inherits from

Public Member Functions
~CCMSX509AttributeCertificateInfo()
IMPORT_C const CArrayPtr< CCMSAttribute > &Attributes()
IMPORT_C const CCMSX509IssuerSerial *BaseCertificateID()
voidDecodeL(const TDesC8 &)
CASN1EncBase *EncoderLC()
IMPORT_C const CCMSX509GeneralNames &Issuer()
IMPORT_C const TDesC8 *IssuerUniqueID()
IMPORT_C CCMSX509AttributeCertificateInfo *NewL()
IMPORT_C CCMSX509AttributeCertificateInfo *NewL(const CCMSX509IssuerSerial &, const CCMSX509GeneralNames &, const CCMSX509AlgorithmIdentifier &, const TInt, const TTime &, const TTime &, const CArrayPtr< CCMSAttribute > &)
IMPORT_C CCMSX509AttributeCertificateInfo *NewL(const CCMSX509GeneralNames &, const CCMSX509GeneralNames &, const CCMSX509AlgorithmIdentifier &, const TInt, const TTime &, const TTime &, const CArrayPtr< CCMSAttribute > &)
IMPORT_C const TTime &NotAfterTime()
IMPORT_C const TTime &NotBeforeTime()
IMPORT_C TIntSerialNumber()
IMPORT_C voidSetAttributesL(const CArrayPtr< CCMSAttribute > &)
IMPORT_C voidSetBaseCertificateIDL(const CCMSX509IssuerSerial &)
IMPORT_C voidSetIssuerL(const CCMSX509GeneralNames &)
IMPORT_C voidSetIssuerUniqueIDL(const TDesC8 &)
IMPORT_C voidSetNotAfterTimeL(const TTime &)
IMPORT_C voidSetNotBeforeTimeL(const TTime &)
IMPORT_C voidSetSerialNumber(const TInt)
IMPORT_C voidSetSignatureL(const CCMSX509AlgorithmIdentifier &)
IMPORT_C voidSetSubjectNameL(const CCMSX509GeneralNames &)
IMPORT_C voidSetVersion(const TInt)
IMPORT_C const CCMSX509AlgorithmIdentifier &Signature()
IMPORT_C const CCMSX509GeneralNames *SubjectName()
IMPORT_C TIntVersion()
Protected Member Functions
CCMSX509AttributeCertificateInfo()
IMPORT_C voidConstructL(const CCMSX509IssuerSerial &, const CCMSX509GeneralNames &, const CCMSX509AlgorithmIdentifier &, const TInt, const TTime &, const TTime &, const CArrayPtr< CCMSAttribute > &)
IMPORT_C voidConstructL(const CCMSX509GeneralNames &, const CCMSX509GeneralNames &, const CCMSX509AlgorithmIdentifier &, const TInt, const TTime &, const TTime &, const CArrayPtr< CCMSAttribute > &)
IMPORT_C voidConstructL()
Private Member Functions
NONSHARABLE_CLASS(CAttributeCertificateData)
Inherited Functions
CBase::CBase()
CBase::Delete(CBase *)
CBase::Extension_(TUint,TAny *&,TAny *)
CBase::operator new(TUint)
CBase::operator new(TUint,TAny *)
CBase::operator new(TUint,TLeave)
CBase::operator new(TUint,TLeave,TUint)
CBase::operator new(TUint,TUint)
CBase::~CBase()
CCMSSequence::CCMSSequence()
CCMSSequence::CreateDerEncodingL(CASN1EncBase *)
CCMSSequence::DecodeSequenceLC(const TDesC8 &)
CCMSSequence::DecodeSequenceLC(const TDesC8 &,TInt,TInt)
CCMSSequence::EncodeL(HBufC8 *&)const
Private Attributes
CAttributeCertificateData *iData
MCMSX509AttributeCertificateInfoExtension *iReserved

Constructor & Destructor Documentation

CCMSX509AttributeCertificateInfo()

IMPORT_CCCMSX509AttributeCertificateInfo()[protected]

C++ default constructor.

~CCMSX509AttributeCertificateInfo()

~CCMSX509AttributeCertificateInfo()[virtual]

Destructor.

Member Functions Documentation

Attributes()

IMPORT_C const CArrayPtr< CCMSAttribute > &Attributes()const
Getter for attributes
Since
3.0

BaseCertificateID()

IMPORT_C const CCMSX509IssuerSerial *BaseCertificateID()const
Getter for baseCertifiedID (subject value)
Since
3.0

ConstructL(const CCMSX509IssuerSerial &, const CCMSX509GeneralNames &, const CCMSX509AlgorithmIdentifier &, const TInt, const TTime &, const TTime &, const CArrayPtr< CCMSAttribute > &)

IMPORT_C voidConstructL(const CCMSX509IssuerSerial &aBaseCertificateID,
const CCMSX509GeneralNames &aIssuer,
const CCMSX509AlgorithmIdentifier &aSignature,
const TIntaSerialNumber,
const TTime &aNotBeforeTime,
const TTime &aNotAfterTime,
const CArrayPtr< CCMSAttribute > &aAttributes
)[protected]

Protected construction to allow derivation

Parameters

const CCMSX509IssuerSerial & aBaseCertificateID
const CCMSX509GeneralNames & aIssuer
const CCMSX509AlgorithmIdentifier & aSignature
const TInt aSerialNumber
const TTime & aNotBeforeTime
const TTime & aNotAfterTime
const CArrayPtr< CCMSAttribute > & aAttributes

ConstructL(const CCMSX509GeneralNames &, const CCMSX509GeneralNames &, const CCMSX509AlgorithmIdentifier &, const TInt, const TTime &, const TTime &, const CArrayPtr< CCMSAttribute > &)

IMPORT_C voidConstructL(const CCMSX509GeneralNames &aSubjectName,
const CCMSX509GeneralNames &aIssuer,
const CCMSX509AlgorithmIdentifier &aSignature,
const TIntaSerialNumber,
const TTime &aNotBeforeTime,
const TTime &aNotAfterTime,
const CArrayPtr< CCMSAttribute > &aAttributes
)[protected]

Protected construction to allow derivation

Parameters

const CCMSX509GeneralNames & aSubjectName
const CCMSX509GeneralNames & aIssuer
const CCMSX509AlgorithmIdentifier & aSignature
const TInt aSerialNumber
const TTime & aNotBeforeTime
const TTime & aNotAfterTime
const CArrayPtr< CCMSAttribute > & aAttributes

ConstructL()

IMPORT_C voidConstructL()[protected]

Protected construction to allow derivation

DecodeL(const TDesC8 &)

voidDecodeL(const TDesC8 &aRawData)
From MCMSModule
Since
3.0

Parameters

const TDesC8 & aRawDataraw-data to be parsed in this instance

EncoderLC()

CASN1EncBase *EncoderLC()const
From MCMSModule
Since
3.0

Issuer()

IMPORT_C const CCMSX509GeneralNames &Issuer()const
Getter for issuer.
Since
3.0

IssuerUniqueID()

IMPORT_C const TDesC8 *IssuerUniqueID()const
Getter for issuerUniqueID
Since
3.0

NONSHARABLE_CLASS(CAttributeCertificateData)

NONSHARABLE_CLASS(CAttributeCertificateData)[private, inline]

Container for certificate data

Parameters

CAttributeCertificateData

NewL()

IMPORT_C CCMSX509AttributeCertificateInfo *NewL()[static]

Two-phased constructor.

NewL(const CCMSX509IssuerSerial &, const CCMSX509GeneralNames &, const CCMSX509AlgorithmIdentifier &, const TInt, const TTime &, const TTime &, const CArrayPtr< CCMSAttribute > &)

IMPORT_C CCMSX509AttributeCertificateInfo *NewL(const CCMSX509IssuerSerial &aBaseCertificateID,
const CCMSX509GeneralNames &aIssuer,
const CCMSX509AlgorithmIdentifier &aSignature,
const TIntaSerialNumber,
const TTime &aNotBeforeTime,
const TTime &aNotAfterTime,
const CArrayPtr< CCMSAttribute > &aAttributes
)[static]

Two-phased constructor. Copies of the parameters are made.

Parameters

const CCMSX509IssuerSerial & aBaseCertificateIDsubject, associated with a Public Key Certificate
const CCMSX509GeneralNames & aIssuerCA issuing the attribute certificate
const CCMSX509AlgorithmIdentifier & aSignaturesignature value
const TInt aSerialNumberserialNumber value
const TTime & aNotBeforeTimeattCertValidityPeriod value
const TTime & aNotAfterTimeattCertValidityPeriod value
const CArrayPtr< CCMSAttribute > & aAttributesattributes value

NewL(const CCMSX509GeneralNames &, const CCMSX509GeneralNames &, const CCMSX509AlgorithmIdentifier &, const TInt, const TTime &, const TTime &, const CArrayPtr< CCMSAttribute > &)

IMPORT_C CCMSX509AttributeCertificateInfo *NewL(const CCMSX509GeneralNames &aSubjectName,
const CCMSX509GeneralNames &aIssuer,
const CCMSX509AlgorithmIdentifier &aSignature,
const TIntaSerialNumber,
const TTime &aNotBeforeTime,
const TTime &aNotAfterTime,
const CArrayPtr< CCMSAttribute > &aAttributes
)[static]

Two-phased constructor. Copies of the parameters are made.

Parameters

const CCMSX509GeneralNames & aSubjectNamesubject, associated with a name
const CCMSX509GeneralNames & aIssuerCA issuing the attribute certificate
const CCMSX509AlgorithmIdentifier & aSignaturesignature value
const TInt aSerialNumberserialNumber value
const TTime & aNotBeforeTimeattCertValidityPeriod value
const TTime & aNotAfterTimeattCertValidityPeriod value
const CArrayPtr< CCMSAttribute > & aAttributesattributes value

NotAfterTime()

IMPORT_C const TTime &NotAfterTime()const
Getter for notAfterTime (part of attCertValidityPeriod).
Since
3.0

NotBeforeTime()

IMPORT_C const TTime &NotBeforeTime()const
Getter for notBeforeTime (part of attCertValidityPeriod).
Since
3.0

SerialNumber()

IMPORT_C TIntSerialNumber()const
Getter for serialNumber.
Since
3.0

SetAttributesL(const CArrayPtr< CCMSAttribute > &)

IMPORT_C voidSetAttributesL(const CArrayPtr< CCMSAttribute > &aAttributes)
Setter for attributes. Creates a copy.
Since
3.0

Parameters

const CArrayPtr< CCMSAttribute > & aAttributesattribute array

SetBaseCertificateIDL(const CCMSX509IssuerSerial &)

IMPORT_C voidSetBaseCertificateIDL(const CCMSX509IssuerSerial &aBaseCertificateID)
Setter for baseCertificateID. Creates a copy. Deletes also subjectName value.
Since
3.0

Parameters

const CCMSX509IssuerSerial & aBaseCertificateIDsubject value, associated with a Public Key Certificate

SetIssuerL(const CCMSX509GeneralNames &)

IMPORT_C voidSetIssuerL(const CCMSX509GeneralNames &aIssuer)
Setter for issuer. Creates a copy.
Since
3.0

Parameters

const CCMSX509GeneralNames & aIssuerX.509 GeneralNames value

SetIssuerUniqueIDL(const TDesC8 &)

IMPORT_C voidSetIssuerUniqueIDL(const TDesC8 &aIssuerUniqueID)
Setter for issuerUniqueID. Creates a copy.
Since
3.0

Parameters

const TDesC8 & aIssuerUniqueIDX.509 UniqueIdentifier (BIT STRING)

SetNotAfterTimeL(const TTime &)

IMPORT_C voidSetNotAfterTimeL(const TTime &aNotAfterTime)
Setter for notAfterTime (part of attCertValidityPeriod). Creates a copy.
Since
3.0

Parameters

const TTime & aNotAfterTimenotAfterTime value

SetNotBeforeTimeL(const TTime &)

IMPORT_C voidSetNotBeforeTimeL(const TTime &aNotBeforeTime)
Setter for notBeforeTime (part of attCertValidityPeriod). Creates a copy
Since
3.0

Parameters

const TTime & aNotBeforeTimenotBeforeTime value

SetSerialNumber(const TInt)

IMPORT_C voidSetSerialNumber(const TIntaSerialNumber)
Setter for serialNumber.
Since
3.0

Parameters

const TInt aSerialNumberX.509 CertificateSerialNumber value

SetSignatureL(const CCMSX509AlgorithmIdentifier &)

IMPORT_C voidSetSignatureL(const CCMSX509AlgorithmIdentifier &aSignature)
Setter for signature. Creates a copy.
Since
3.0

Parameters

const CCMSX509AlgorithmIdentifier & aSignatureX.509 AlgorithmIdentifier value

SetSubjectNameL(const CCMSX509GeneralNames &)

IMPORT_C voidSetSubjectNameL(const CCMSX509GeneralNames &aSubjectName)
Setter for subjectName. Creates a copy. Deletes also baseCertificateID value.
Since
3.0

Parameters

const CCMSX509GeneralNames & aSubjectNamesubject value, associated with a name

SetVersion(const TInt)

IMPORT_C voidSetVersion(const TIntaVersion)
Setter for Version
Since
3.0

Parameters

const TInt aVersionVersion value.

Signature()

IMPORT_C const CCMSX509AlgorithmIdentifier &Signature()const
Getter for signature.
Since
3.0

SubjectName()

IMPORT_C const CCMSX509GeneralNames *SubjectName()const
Getter for subjectName (subject value)
Since
3.0

Version()

IMPORT_C TIntVersion()const
Getter for Version.
Since
3.0

Member Data Documentation

CAttributeCertificateData * iData

CAttributeCertificateData *iData[private]

MCMSX509AttributeCertificateInfoExtension * iReserved

MCMSX509AttributeCertificateInfoExtension *iReserved[private]