Class Validity

java.lang.Object
org.bouncycastle.asn1.ASN1Object
org.bouncycastle.cert.Validity
All Implemented Interfaces:
org.bouncycastle.asn1.ASN1Encodable, org.bouncycastle.util.Encodable

public class Validity extends org.bouncycastle.asn1.ASN1Object
  • Constructor Summary

    Constructors
    Constructor
    Description
    Validity(org.bouncycastle.asn1.x509.Time notBefore, org.bouncycastle.asn1.x509.Time notAfter)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static Validity
     
    static Validity
    getInstance(org.bouncycastle.asn1.ASN1TaggedObject taggedObject, boolean declaredExplicit)
     
    org.bouncycastle.asn1.x509.Time
     
    org.bouncycastle.asn1.x509.Time
     
    org.bouncycastle.asn1.ASN1Primitive
    Validity ::= SEQUENCE { notBefore Time, notAfter Time }

    Methods inherited from class org.bouncycastle.asn1.ASN1Object

    encodeTo, encodeTo, equals, getEncoded, getEncoded, hasEncodedTagValue, hashCode

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Validity

      public Validity(org.bouncycastle.asn1.x509.Time notBefore, org.bouncycastle.asn1.x509.Time notAfter)
  • Method Details

    • getInstance

      public static Validity getInstance(Object obj)
    • getInstance

      public static Validity getInstance(org.bouncycastle.asn1.ASN1TaggedObject taggedObject, boolean declaredExplicit)
    • getNotBefore

      public org.bouncycastle.asn1.x509.Time getNotBefore()
    • getNotAfter

      public org.bouncycastle.asn1.x509.Time getNotAfter()
    • toASN1Primitive

      public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive()
       Validity ::= SEQUENCE {
         notBefore      Time,
         notAfter       Time  }
       
      Specified by:
      toASN1Primitive in interface org.bouncycastle.asn1.ASN1Encodable
      Specified by:
      toASN1Primitive in class org.bouncycastle.asn1.ASN1Object