org.bouncycastle.tsp

Class TSPUtil


public class TSPUtil
extends java.lang.Object

Method Summary

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

Method Details

validateCertificate

public static void validateCertificate(X509Certificate cert)
            throws TSPValidationException
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.