org.bouncycastle.tsp

Class TSPUtil

public class TSPUtil extends Object

Method Summary
static voidvalidateCertificate(X509Certificate cert)
Validate the passed in certificate as being of the correct type to be used for time stamping.

Method Detail

validateCertificate

public static void validateCertificate(X509Certificate cert)
Validate the passed in certificate as being of the correct type to be used for time stamping. To be valid it must have an ExtendedKeyUsage extension which has a key purpose identifier of id-kp-timeStamping.

Parameters: cert the certificate of interest.

Throws: TSPValidationException if the certicate fails on one of the check points.