Example usage for org.bouncycastle.asn1.tsp TSTInfo getGenTime

List of usage examples for org.bouncycastle.asn1.tsp TSTInfo getGenTime

Introduction

In this page you can find the example usage for org.bouncycastle.asn1.tsp TSTInfo getGenTime.

Prototype

public ASN1GeneralizedTime getGenTime() 

Source Link

Usage

From source file:de.rub.dez6a3.jpdfsigner.TimeStampToken.java

License:Open Source License

TimeStampTokenInfo(TSTInfo tstInfo) throws TSPException, IOException {
    this.tstInfo = tstInfo;

    try {//from   www. ja  v  a  2  s .c  om
        this.genTime = tstInfo.getGenTime().getDate();
    } catch (ParseException e) {
        throw new TSPException("unable to parse genTime field");
    }
}