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 ()
void DecodeL (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 TInt SerialNumber ()
IMPORT_C void SetAttributesL (const CArrayPtr < CCMSAttribute > &)
IMPORT_C void SetBaseCertificateIDL (const CCMSX509IssuerSerial &)
IMPORT_C void SetIssuerL (const CCMSX509GeneralNames &)
IMPORT_C void SetIssuerUniqueIDL (const TDesC8 &)
IMPORT_C void SetNotAfterTimeL (const TTime &)
IMPORT_C void SetNotBeforeTimeL (const TTime &)
IMPORT_C void SetSerialNumber (const TInt )
IMPORT_C void SetSignatureL (const CCMSX509AlgorithmIdentifier &)
IMPORT_C void SetSubjectNameL (const CCMSX509GeneralNames &)
IMPORT_C void SetVersion (const TInt )
IMPORT_C const CCMSX509AlgorithmIdentifier & Signature ()
IMPORT_C const CCMSX509GeneralNames * SubjectName ()
IMPORT_C TInt Version ()
Protected Member Functions
CCMSX509AttributeCertificateInfo ()
IMPORT_C void ConstructL (const CCMSX509IssuerSerial &, const CCMSX509GeneralNames &, const CCMSX509AlgorithmIdentifier &, const TInt , const TTime &, const TTime &, const CArrayPtr < CCMSAttribute > &)
IMPORT_C void ConstructL (const CCMSX509GeneralNames &, const CCMSX509GeneralNames &, const CCMSX509AlgorithmIdentifier &, const TInt , const TTime &, const TTime &, const CArrayPtr < CCMSAttribute > &)
IMPORT_C void ConstructL ()
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_C CCMSX509AttributeCertificateInfo ( ) [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 void ConstructL ( const CCMSX509IssuerSerial & aBaseCertificateID,
const CCMSX509GeneralNames & aIssuer,
const CCMSX509AlgorithmIdentifier & aSignature,
const TInt aSerialNumber,
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 void ConstructL ( const CCMSX509GeneralNames & aSubjectName,
const CCMSX509GeneralNames & aIssuer,
const CCMSX509AlgorithmIdentifier & aSignature,
const TInt aSerialNumber,
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 void ConstructL ( ) [protected]

Protected construction to allow derivation

DecodeL(const TDesC8 &)

void DecodeL ( const TDesC8 & aRawData )
From MCMSModule
Since
3.0

Parameters

const TDesC8 & aRawData raw-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 TInt aSerialNumber,
const TTime & aNotBeforeTime,
const TTime & aNotAfterTime,
const CArrayPtr < CCMSAttribute > & aAttributes
) [static]

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

Parameters

const CCMSX509IssuerSerial & aBaseCertificateID subject, associated with a Public Key Certificate
const CCMSX509GeneralNames & aIssuer CA issuing the attribute certificate
const CCMSX509AlgorithmIdentifier & aSignature signature value
const TInt aSerialNumber serialNumber value
const TTime & aNotBeforeTime attCertValidityPeriod value
const TTime & aNotAfterTime attCertValidityPeriod value
const CArrayPtr < CCMSAttribute > & aAttributes attributes 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 TInt aSerialNumber,
const TTime & aNotBeforeTime,
const TTime & aNotAfterTime,
const CArrayPtr < CCMSAttribute > & aAttributes
) [static]

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

Parameters

const CCMSX509GeneralNames & aSubjectName subject, associated with a name
const CCMSX509GeneralNames & aIssuer CA issuing the attribute certificate
const CCMSX509AlgorithmIdentifier & aSignature signature value
const TInt aSerialNumber serialNumber value
const TTime & aNotBeforeTime attCertValidityPeriod value
const TTime & aNotAfterTime attCertValidityPeriod value
const CArrayPtr < CCMSAttribute > & aAttributes attributes 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 TInt SerialNumber ( ) const
Getter for serialNumber.
Since
3.0

SetAttributesL(const CArrayPtr< CCMSAttribute > &)

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

Parameters

const CArrayPtr < CCMSAttribute > & aAttributes attribute array

SetBaseCertificateIDL(const CCMSX509IssuerSerial &)

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

Parameters

const CCMSX509IssuerSerial & aBaseCertificateID subject value, associated with a Public Key Certificate

SetIssuerL(const CCMSX509GeneralNames &)

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

Parameters

const CCMSX509GeneralNames & aIssuer X.509 GeneralNames value

SetIssuerUniqueIDL(const TDesC8 &)

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

Parameters

const TDesC8 & aIssuerUniqueID X.509 UniqueIdentifier (BIT STRING)

SetNotAfterTimeL(const TTime &)

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

Parameters

const TTime & aNotAfterTime notAfterTime value

SetNotBeforeTimeL(const TTime &)

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

Parameters

const TTime & aNotBeforeTime notBeforeTime value

SetSerialNumber(const TInt)

IMPORT_C void SetSerialNumber ( const TInt aSerialNumber )
Setter for serialNumber.
Since
3.0

Parameters

const TInt aSerialNumber X.509 CertificateSerialNumber value

SetSignatureL(const CCMSX509AlgorithmIdentifier &)

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

Parameters

const CCMSX509AlgorithmIdentifier & aSignature X.509 AlgorithmIdentifier value

SetSubjectNameL(const CCMSX509GeneralNames &)

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

Parameters

const CCMSX509GeneralNames & aSubjectName subject value, associated with a name

SetVersion(const TInt)

IMPORT_C void SetVersion ( const TInt aVersion )
Setter for Version
Since
3.0

Parameters

const TInt aVersion Version 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 TInt Version ( ) const
Getter for Version.
Since
3.0

Member Data Documentation

CAttributeCertificateData * iData

CAttributeCertificateData * iData [private]

MCMSX509AttributeCertificateInfoExtension * iReserved

MCMSX509AttributeCertificateInfoExtension * iReserved [private]