Class ASN1GeneralizedTimeBC

All Implemented Interfaces:
IASN1Encodable, IASN1GeneralizedTime, IASN1Primitive

public class ASN1GeneralizedTimeBC extends ASN1PrimitiveBC implements IASN1GeneralizedTime
Wrapper class for ASN1GeneralizedTime.
  • Constructor Details

    • ASN1GeneralizedTimeBC

      public ASN1GeneralizedTimeBC (org.bouncycastle.asn1.ASN1GeneralizedTime asn1GeneralizedTime)
      Creates new wrapper instance for ASN1GeneralizedTime.
      Parameters:
      asn1GeneralizedTime - ASN1GeneralizedTime to be wrapped
  • Method Details

    • getASN1GeneralizedTime

      public org.bouncycastle.asn1.ASN1GeneralizedTime getASN1GeneralizedTime()
      Gets actual org.bouncycastle object being wrapped.
      Returns:
      wrapped ASN1GeneralizedTime.
    • getDate

      public Date getDate() throws ParseException
      Calls actual getDate method for the wrapped ASN1GeneralizedTime object.
      Specified by:
      getDate in interface IASN1GeneralizedTime
      Returns:
      Date date stored in the wrapped ASN1GeneralizedTime.
      Throws:
      ParseException - in case of some parsing error.