Class OptionalValidity

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

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

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

    Modifier and Type
    Method
    Description
     
    getInstance(org.bouncycastle.asn1.ASN1TaggedObject taggedObject, boolean declaredExplicit)
     
    org.bouncycastle.asn1.x509.Time
     
    org.bouncycastle.asn1.x509.Time
     
    getTagged(org.bouncycastle.asn1.ASN1TaggedObject taggedObject, boolean declaredExplicit)
     
    org.bouncycastle.asn1.ASN1Primitive
    OptionalValidity ::= SEQUENCE { notBefore [0] Time OPTIONAL, notAfter [1] Time OPTIONAL } --at least one MUST be present Time ::= CHOICE { ...

    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

    • OptionalValidity

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

    • getInstance

      public static OptionalValidity getInstance(Object o)
    • getInstance

      public static OptionalValidity getInstance(org.bouncycastle.asn1.ASN1TaggedObject taggedObject, boolean declaredExplicit)
    • getTagged

      public static OptionalValidity getTagged(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()
       OptionalValidity ::= SEQUENCE {
           notBefore    [0] Time OPTIONAL,
           notAfter     [1] Time OPTIONAL } --at least one MUST be present
      
       Time ::= CHOICE { ... }
       
      Specified by:
      toASN1Primitive in interface org.bouncycastle.asn1.ASN1Encodable
      Specified by:
      toASN1Primitive in class org.bouncycastle.asn1.ASN1Object
      Returns:
      a basic ASN.1 object representation.