Bu sayfa salt okunur. Kaynağı görebilirsiniz ama değiştiremezsiniz. Bunun yanlış olduğunu düşünüyorsanız yöneticiye danışın.
Certificate Validation API, performs validation operation according to the validation policy file defined by the user. The time of the validation is specified by external parameter according to which revocation controls are applied. The certificates revoked before the given date is stated as invalid. For the validation in current time, the sample code is as follows:
<sxh java; title: Java> ValidationSystem vs = CertificateValidation.createValidationSystem(policy); vs.setBaseValidationTime(Calendar.getInstance()); CertificateStatusInfo csi = CertificateValidation.validateCertificate(vs, cert); </sxh>
<sxh csharp;title:C#> ValidationSystem vs = CertificateValidation.createValidationSystem(policy); vs.setBaseValidationTime(DateTime.UtcNow); CertificateStatusInfo csi = CertificateValidation.validateCertificate(vs, cert); </sxh>
Certificate validation operation creates CertificateStatusInfo object. By using its method toString(), you can get a textual validation result.The method getDetailedMessage() provides more detailed and user friendly result message. getCertificateStatus() returns the status of the certificate in the enumeration type of CertificateStatus. This enumeration can take values as below: