class CDRMRIContext : public CBase |
CDRMRIContext implements a datatype for the common data for a single content identifier
Private Member Functions | |
---|---|
CDRMRIContext() | |
CDRMRIContext(const CDRMRIContext &) | |
void | ConstructL(const TDesC8 &, const TDesC8 &, const TDesC8 &, const RPointerArray< HBufC8 > &, const RPointerArray< HBufC8 > &, const TDesC8 &, const TTime &, const RPointerArray< HBufC8 > &, const RPointerArray< HBufC8 > &, const TUint8, const TDesC8 &, const TUint8) |
void | ReadInt64L(TInt64 &, RReadStream &) |
void | WriteInt64L(const TInt64 &, RWriteStream &) |
CDRMRIContext & | operator=(const CDRMRIContext &) |
CDRMRIContext | ( | const CDRMRIContext & | ) | [private] |
Copy constructor - Prevented
const CDRMRIContext & |
IMPORT_C const RPointerArray< HBufC8 > & | Algorithms | ( | ) | const |
Algorithms
Returns a constant reference to the algorithm pointer array
IMPORT_C const RPointerArray< HBufC8 > & | CertificateChain | ( | ) | const |
CertificateChain
Returns a constant reference to the algorithm pointer array
void | ConstructL | ( | const TDesC8 & | aRIID, |
const TDesC8 & | aRiAlias, | |||
const TDesC8 & | aVersion, | |||
const RPointerArray< HBufC8 > & | aAlgorithms, | |||
const RPointerArray< HBufC8 > & | aRIURLs, | |||
const TDesC8 & | aRightsIssuerURL, | |||
const TTime & | aExpiryTime, | |||
const RPointerArray< HBufC8 > & | aChain, | |||
const RPointerArray< HBufC8 > & | aResponses, | |||
const TUint8 | aDeviceCertCached, | |||
const TDesC8 & | aSelectedDeviceRoot, | |||
const TUint8 | aIsMeteringAllowed | |||
) | [private] |
ConstructL
Second phase constructor
const TDesC8 & aRIID | : Rights issuer identifier SHA1_HASH |
const TDesC8 & aRiAlias | : Rights issuer alias from RoapTrigger |
const TDesC8 & aVersion | : Selected version KMaxRoapVersionLength |
const RPointerArray< HBufC8 > & aAlgorithms | : Algorithm strings |
const RPointerArray< HBufC8 > & aRIURLs | : Rights issuer urls, |
const TDesC8 & aRightsIssuerURL | |
const TTime & aExpiryTime | : Expiration time |
const RPointerArray< HBufC8 > & aChain | |
const RPointerArray< HBufC8 > & aResponses | |
const TUint8 aDeviceCertCached | |
const TDesC8 & aSelectedDeviceRoot | |
const TUint8 aIsMeteringAllowed |
IMPORT_C TUint8 | DeviceCertCached | ( | ) | const |
DeviceCertCached
Returns an indication if the RI has stored the Device certificate or not
IMPORT_C const TTime | ExpiryTime | ( | ) | const |
ExpiryTime
Returns a constant reference to the expiration time
IMPORT_C HBufC8 * | ExportL | ( | ) | const |
ExportL
Writes the data of the object into an HBufC8 and returns a pointer to it. The caller is responsible for deleting the object.
IMPORT_C void | ExternalizeL | ( | RWriteStream & | aStream | ) | const |
ExternalizeL
Writes the data of the object into the stream
RWriteStream & aStream | : the output stream to write to |
IMPORT_C void | ImportL | ( | const TDesC8 & | aBuffer | ) |
ImportL
Reads the data of the object from the descriptor and initialized the object accordingly
const TDesC8 & aBuffer | : the buffer containing the data of the imported object |
IMPORT_C void | InternalizeL | ( | RReadStream & | aStream | ) |
InternalizeL
Reads the data of the object from the stream
RReadStream & aStream | : the output stream to write to |
IMPORT_C TUint8 | IsMeteringAllowed | ( | ) | const |
IsMeteringAllowed
Checks wheter metering is allowed for a this RightsIssuer
IMPORT_C CDRMRIContext * | NewL | ( | const TDesC8 & | aRIID, |
const TDesC8 & | aRiAlias, | |||
const TDesC8 & | aVersion, | |||
const RPointerArray< HBufC8 > & | aAlgorithms, | |||
const RPointerArray< HBufC8 > & | aRIURLs, | |||
const TDesC8 & | aRightsIssuerURL, | |||
const TTime & | aExpiryTime, | |||
const RPointerArray< HBufC8 > & | aChain, | |||
const RPointerArray< HBufC8 > & | aResponses, | |||
const TUint8 | aDeviceCertCached, | |||
const TDesC8 & | aSelectedDeviceRoot, | |||
const TUint8 | aIsMeteringAllowed = ETrue | |||
) | [static] |
const TDesC8 & aRIID | : Rights issue identifier SHA1_HASH |
const TDesC8 & aRiAlias | |
const TDesC8 & aVersion | : Selected version KMaxRoapVersionLength |
const RPointerArray< HBufC8 > & aAlgorithms | : Algorithm strings |
const RPointerArray< HBufC8 > & aRIURLs | : Rights issuer urls |
const TDesC8 & aRightsIssuerURL | |
const TTime & aExpiryTime | : Expiration time |
const RPointerArray< HBufC8 > & aChain | |
const RPointerArray< HBufC8 > & aResponses | |
const TUint8 aDeviceCertCached | |
const TDesC8 & aSelectedDeviceRoot | |
const TUint8 aIsMeteringAllowed = ETrue |
IMPORT_C CDRMRIContext * | NewLC | ( | const TDesC8 & | aRIID, |
const TDesC8 & | aRiAlias, | |||
const TDesC8 & | aVersion, | |||
const RPointerArray< HBufC8 > & | aAlgorithms, | |||
const RPointerArray< HBufC8 > & | aRIURLs, | |||
const TDesC8 & | aRightsIssuerURL, | |||
const TTime & | aExpiryTime, | |||
const RPointerArray< HBufC8 > & | aChain, | |||
const RPointerArray< HBufC8 > & | aResponses, | |||
const TUint8 | aDeviceCertCached, | |||
const TDesC8 & | aSelectedDeviceRoot, | |||
const TUint8 | aIsMeteringAllowed = ETrue | |||
) | [static] |
NewLC
Creates an instance of the CDRMRIContext class and returns a pointer to it. The function leaves the object into the cleanup stack
const TDesC8 & aRIID | : Rights issue identifier SHA1_HASH |
const TDesC8 & aRiAlias | |
const TDesC8 & aVersion | : Selected version KMaxRoapVersionLength |
const RPointerArray< HBufC8 > & aAlgorithms | : Algorithm strings |
const RPointerArray< HBufC8 > & aRIURLs | : Rights issuer urls, |
const TDesC8 & aRightsIssuerURL | |
const TTime & aExpiryTime | : Expiration time |
const RPointerArray< HBufC8 > & aChain | |
const RPointerArray< HBufC8 > & aResponses | |
const TUint8 aDeviceCertCached | |
const TDesC8 & aSelectedDeviceRoot | |
const TUint8 aIsMeteringAllowed = ETrue |
IMPORT_C CDRMRIContext * | NewLC | ( | ) | [static] |
NewLC
Creates an instance of the CDRMRIContext class and returns a pointer to it. The function leaves the object into the cleanup stack
IMPORT_C const RPointerArray< HBufC8 > & | OCSPResponse | ( | ) | const |
OCSPResponse
Returns a constant reference to the algorithm pointer array
IMPORT_C const RPointerArray< HBufC8 > & | RIURLs | ( | ) | const |
RIURLs
Returns a constant reference to the url pointer array
void | ReadInt64L | ( | TInt64 & | aRead, |
RReadStream & | aStream | |||
) | [private] |
ReadInt64L
Reads the 64 bit integer from the stream
TInt64 & aRead | : the 64 bit integer read |
RReadStream & aStream | : the output stream to write to |
IMPORT_C const TDesC8 & | RightsIssuerURL | ( | ) | const |
RIURLs
Returns a constant reference to the rights issuer url
IMPORT_C void | SetAlgorithmsL | ( | const RPointerArray< HBufC8 > & | aAlgorithms | ) |
SetAlgorithmsL
Sets the algorithms, deletes the old ones
const RPointerArray< HBufC8 > & aAlgorithms | : a pointer array with the used algorithms |
IMPORT_C void | SetCertificateChainL | ( | const RPointerArray< HBufC8 > & | aChain | ) |
SetCertificateChainL
Sets the certificate chain
const RPointerArray< HBufC8 > & aChain | : the certificate chain |
IMPORT_C void | SetDeviceCertCached | ( | TUint8 & | aIsCached | ) |
SetDeviceCertCached
Sets the indication whether the RI has stored the Device public key or not
TUint8 & aIsCached | : The certificate caching indication (ETrue/EFalse) |
IMPORT_C void | SetExpiryTimeL | ( | const TTime & | aExpiryTime | ) |
SetExpiryTimeL
Sets the expiration time to the given value
const TTime & aExpiryTime | : the expiration time |
IMPORT_C void | SetMeteringStatus | ( | const TBool | aIsAllowed | ) |
SetMeteringStatus
Sets the value for metering to be enabled or disabled
const TBool aIsAllowed | : ETrue if set to allowed, EFalse if not allowed |
IMPORT_C void | SetOCSPResponseL | ( | const RPointerArray< HBufC8 > & | aResponses | ) |
SetOCSPResponseL
Sets the OCSP responses
const RPointerArray< HBufC8 > & aResponses | : the OCSP responses |
IMPORT_C void | SetRIIDL | ( | const TDesC8 & | aRIID | ) |
SetRIIDL
Sets the rights issuer identifier, overwrites the previous one if one exits
const TDesC8 & aRIID | : Rights Issuer Identifier |
IMPORT_C void | SetRIURLsL | ( | const RPointerArray< HBufC8 > & | aRIURLs | ) |
SetRIURLsL
Sets the algorithms, deletes the old ones
const RPointerArray< HBufC8 > & aRIURLs | : a pointer array with the rights issuer urls |
IMPORT_C void | SetRightsIssuerURLL | ( | const TDesC8 & | aRightsIssuerURL | ) |
SetRightsIssuerURLL
Sets the RI URL, deletes the old one
const TDesC8 & aRightsIssuerURL | : a reference to the new rights issuer url |
IMPORT_C void | SetSelectedDeviceRoot | ( | const TDesC8 & | aSelectedDeviceRoot | ) |
SetSelectedDeviceRoot
Sets the selected Device root, overwrites the previous one if one exits
const TDesC8 & aSelectedDeviceRoot | : Hash of the root certificate public key |
IMPORT_C void | SetVersionL | ( | const TDesC8 & | aRIID | ) |
SetVersionL
Sets the version, overwrites the previous one if one exits
const TDesC8 & aRIID |
IMPORT_C TBool | WhiteListURLExistsL | ( | const TDesC8 & | aURL | ) | const |
WhiteListURLExistsL
Checks the white list to see if the url is in the list
const TDesC8 & aURL | : the URL to look for |
void | WriteInt64L | ( | const TInt64 & | aWrite, |
RWriteStream & | aStream | |||
) | const [private] |
WriteInt64L
Writes the 64 bit integer to the stream
const TInt64 & aWrite | : the 64 bit integer to write |
RWriteStream & aStream | : the output stream to write to |
CDRMRIContext & | operator= | ( | const CDRMRIContext & | ) | [private] |
Assignment operator - Prevented
const CDRMRIContext & |
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.