X509CertNameParser Class Reference
Static class CX509CertNameParser provides functions that extract relevant information for user from x.509 certificate. CX509CertNameParser extracts the most important name info and tries to guarantee uniqueness in a list of certificates. X509CertNameParser.dll
- Since
- Series60_2.0
Private Member Functions |
---|
| X509CertNameParser() |
TInt
| AddAltNameToArrayL(TInt, CX509DomainName *, CDesCArray &) |
void | AddToBufLD(const TDesC &, HBufC *&) |
void | CompareAndAddNameL(const TDesC &, CDesCArray &) |
void | GetAltNamePartL(const CX509AltNameExt &, const TGNType &, CDesCArray &) |
void | GetDNPartAllL(const CX500DistinguishedName &, const TDesC &, CDesCArray &) |
void | GetDNPartL(const CX500DistinguishedName &, const TDesC &, CDesCArray &) |
TInt
| GetFullNameL(const CX500DistinguishedName &, const CX509CertExtension *, HBufC *&, const TDesC &) |
TInt
| GetNamePartsL(const CX500DistinguishedName &, const CX509CertExtension *, CDesCArray &, TX509CNPNameType) |
TInt
| HandleErrorL(TInt) |
Private Member Enumerations |
---|
enum | TX509CNPNameElement { EDNCommonName = 1, ECritAltRFC822Name, EDNOrganizationName, EDNOrganizationalUnitName, ECritAltDNSName, ECritAltURI, ECritAltDirectoryName, ECritAltIPAddress, EAltRFC822Name, EAltDNSName, EAltURI, EDNCountryName, EDNStateOrProvinceName, EDNLocalityName, EAltDirectoryName, EAltIPAddress } |
enum | TX509CNPNameType { EX509CNPPrimAndSecond, EX509CNPFullName } |
Constructor & Destructor Documentation
X509CertNameParser()
X509CertNameParser | ( | ) | [private] |
Member Functions Documentation
AddAltNameToArrayL(TInt, CX509DomainName *, CDesCArray &)
HandleAltNameL_description. Handles error. If error is KErrNone, KErrArgument or KErrNotSupported, it just returns aError, otherwise it leaves with aError.
- Since
- Series60_2.0
AddToBufLD(const TDesC &, HBufC *&)
void | AddToBufLD | ( | const TDesC & | aName, |
| HBufC *& | aBuf |
| ) | [private, static] |
AddToBufLC_description. Appends aName to aBuf. If aBuf isn't NULL, first aBuf is deleted and memory is allocated for existing data and for aName.
- Since
- Series60_2.0
Parameters
const TDesC & aName | Desciptor that is appended to aBuf |
HBufC *& aBuf | IN Null pointer or buffer |
CompareAndAddNameL(const TDesC &, CDesCArray &)
void | CompareAndAddNameL | ( | const TDesC & | aProposal, |
| CDesCArray & | aNameArray |
| ) | [private, static] |
CompareAndAddNameL_description. Adds proposal to array if none of the elements of array isn't equal with proposal.
- Since
- Series60_2.0
GetAltNamePartL(const CX509AltNameExt &, const TGNType &, CDesCArray &)
GetAltNamePartL_description. Gets all elements of alternative name identified by one OID.
- Since
- Series60_2.0
Parameters
const CX509AltNameExt & aAltName | Alternative name extension |
const TGNType & aSubPartType | Type of the alternative name subpart |
CDesCArray & aNameArray | Found name elements are appended to this array. |
GetDNPartAllL(const CX500DistinguishedName &, const TDesC &, CDesCArray &)
GetDNPartAllL_description. Gets all name elements of the DN identified by one OID.
- Since
- Series60_2.0
Parameters
const CX500DistinguishedName & aDN | Distinguished name |
const TDesC & aSubPartOID | OID of the distinguished name subpart |
CDesCArray & aNameArray | Found name elements are appended to this array. |
GetDNPartL(const CX500DistinguishedName &, const TDesC &, CDesCArray &)
GetDNPartL_description. Gets one name element of the DN identified by OID.
- Since
- Series60_2.0
GetFullNameL(const CX500DistinguishedName &, const CX509CertExtension *, HBufC *&, const TDesC &)
GetFullNameL_description. Common function for FullName functions.
- Since
- Series60_2.0
GetNamePartsL(const CX500DistinguishedName &, const CX509CertExtension *, CDesCArray &, TX509CNPNameType)
GetNamePartsL_description. Collects all the name parts of the certificate to array. One name element is placed to one element of array.
- Since
- Series60_2.0
HandleErrorL(TInt)
TInt
| HandleErrorL | ( | TInt | aError | ) | [private, static] |
HandleErrorL_description. Handles error. If error is KErrNone, KErrArgument or KErrNotSupported, it just returns aError, otherwise it leaves with aError.
- Since
- Series60_2.0
IssuerFullNameL(const CX509Certificate &, HBufC *&)
IssuerFullNameL_description. IssuerFullNameL member function is used to collect all the relevant Issuer information from the Issuer and from the Issuer alternative name extension of the certificate.
- Since
- Series60_2.0
Parameters
const CX509Certificate & aCertificate | Certificate where the information is extracted. |
HBufC *& aIssuerName | IN null pointer, OUT Full issuer name of the certificate or KNullDesC if nothing is found.. |
PrimaryAndSecondaryNameL(const CX509Certificate &, HBufC *&, HBufC *&, const TDesC &)
PrimaryAndSecondaryNameL_description. PrimaryAndSecondaryNameL member function is used to collect Primary and Secondsry Name data of certificate information. The first found non-empty naming element and not equal with label is Primary Name. The second available information element not equal with label is Secondary Name.
- Since
- Series60_2.0
Parameters
const CX509Certificate & aCertificate | Certificate where the information is extracted. |
HBufC *& aPrimaryName | IN null pointer, OUT first found name element according to name element order or KNulDesC if Primary Name isn't found. |
HBufC *& aSecondaryName | IN null pointer, OUT second found name element according to name element order or KNullDesC if Secondary Name isn't found. |
const TDesC & aLabel =
KNullDesC
| Label of the certificate. Found elements are compared to label to make sure that aPrimaryName and aSecondaryName differ from label. If label doesn't exist, this can be left away. |
SubjectFullNameL(const CX509Certificate &, HBufC *&, const TDesC &)
SubjectFullNameL_description. SubjectFullNameL member function is used to collect all relevant subject information from the subject and from the subject alternative name extension of the certificate.
- Since
- Series60_2.0
Parameters
const CX509Certificate & aCertificate | Certificate where the information is extracted. |
HBufC *& aSubjectName | IN null pointer, OUT Full subject name of the certificate or KNullDesC if nothing is found. |
const TDesC & aLabel =
KNullDesC
| Label of the certificate. Found elements are compared to label to make sure that aPrimaryName and aSecondaryName differ from label. If label doesn't exist, this can be left away. |
Member Enumerations Documentation
Enum TX509CNPNameElement
enum TX509CNPNameElement declaration. This enum defines the naming element order that can be changed by chancing the order of enum's members.
Enumerators
EDNCommonName = 1 | |
ECritAltRFC822Name | |
EDNOrganizationName | |
EDNOrganizationalUnitName | |
ECritAltDNSName | |
ECritAltURI | |
ECritAltDirectoryName | |
ECritAltIPAddress | |
EAltRFC822Name | |
EAltDNSName | |
EAltURI | |
EDNCountryName | |
EDNStateOrProvinceName | |
EDNLocalityName | |
EAltDirectoryName | |
EAltIPAddress | |
Enum TX509CNPNameType
enum TX509CNPNameType declaration.
Enumerators
EX509CNPPrimAndSecond | |
EX509CNPFullName | |
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.