85 * in the course of validation. |
83 * in the course of validation. |
86 * |
84 * |
87 * @return An array of certificate policies. */ |
85 * @return An array of certificate policies. */ |
88 IMPORT_C const CArrayPtrFlat<CX509CertPolicyInfo>& Policies() const; |
86 IMPORT_C const CArrayPtrFlat<CX509CertPolicyInfo>& Policies() const; |
89 |
87 |
90 /** Resets the validation result object to its default values. */ |
88 /** Resets the validation result object to its default values. |
|
89 * @internalTechnology |
|
90 */ |
91 void Reset(); |
91 void Reset(); |
92 |
92 |
93 /** Sets the error status, and then leaves. |
93 /** Sets the error status, and then leaves. |
94 * |
94 * |
95 * The function uses SetError() to set the error status. |
95 * The function uses SetError() to set the error status. |
96 * |
96 * |
97 * @param aError The error type that occurred when validating the certificate chain. |
97 * @param aError The error type that occurred when validating the certificate chain. |
98 * @param aCert The index number identifying the certificate that gave rise to |
98 * @param aCert The index number identifying the certificate that gave rise to |
99 * the error. */ |
99 * the error. |
|
100 * @internalTechnology |
|
101 */ |
100 void SetErrorAndLeaveL(const TValidationError aError, const TInt aCert); |
102 void SetErrorAndLeaveL(const TValidationError aError, const TInt aCert); |
101 |
103 |
102 /** Sets the error status. |
104 /** Sets the error status. |
103 * |
105 * |
104 * @param aError The error type that occurred when validating the certificate chain. |
106 * @param aError The error type that occurred when validating the certificate chain. |
105 * @param aCert The index number identifying the certificate that gave rise to |
107 * @param aCert The index number identifying the certificate that gave rise to |
106 * the error. */ |
108 * the error. |
|
109 * @internalTechnology |
|
110 */ |
107 void SetError(const TValidationError aError, const TInt aCert); |
111 void SetError(const TValidationError aError, const TInt aCert); |
108 |
112 |
109 /** Adds a warning to the validation result. |
113 /** Adds a warning to the validation result. |
110 * |
114 * |
111 * @param aWarning The warning to be added. */ |
115 * @param aWarning The warning to be added. |
|
116 * @internalTechnology |
|
117 */ |
112 void AppendWarningL(TValidationStatus aWarning); |
118 void AppendWarningL(TValidationStatus aWarning); |
113 |
119 |
114 /** Adds a policy to the validation result. |
120 /** Adds a policy to the validation result. |
115 * |
121 * |
116 * @param aPolicy The policy to be added. */ |
122 * @param aPolicy The policy to be added. |
|
123 * @internalTechnology |
|
124 */ |
117 void AppendPolicyL(CX509CertPolicyInfo& aPolicy); |
125 void AppendPolicyL(CX509CertPolicyInfo& aPolicy); |
118 |
126 |
119 /** Removes all policies from the validation result. |
127 /** Removes all policies from the validation result. |
120 * |
128 * |
121 * It is used by the validation process to remove policies it has added when |
129 * It is used by the validation process to remove policies it has added when |
122 * the computation cannot complete because of environmental conditions such as |
130 * the computation cannot complete because of environmental conditions such as |
123 * out of memory, file access failures, etc.. */ |
131 * out of memory, file access failures, etc.. |
|
132 * @internalTechnology |
|
133 */ |
124 // (not like signature validation...) |
134 // (not like signature validation...) |
125 void RemovePolicies(); |
135 void RemovePolicies(); |
126 |
136 |
127 // Internalization/Externalization |
137 // Internalization/Externalization |
128 // Externalize. Writes the data out to a stream |
138 // Externalize. Writes the data out to a stream |