Bouncy Castle Cryptography Library 1.79

org.bouncycastle.asn1.crmf
Class OptionalValidity

java.lang.Object
  extended byorg.bouncycastle.asn1.ASN1Object
      extended byorg.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
OptionalValidity(org.bouncycastle.asn1.x509.Time notBefore, org.bouncycastle.asn1.x509.Time notAfter)
           
 
Method Summary
static OptionalValidity getInstance(java.lang.Object o)
           
 org.bouncycastle.asn1.x509.Time getNotAfter()
           
 org.bouncycastle.asn1.x509.Time getNotBefore()
           
 org.bouncycastle.asn1.ASN1Primitive toASN1Primitive()
          OptionalValidity ::= SEQUENCE { notBefore [0] Time OPTIONAL, notAfter [1] Time OPTIONAL } --at least one MUST be present
 
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 Detail

OptionalValidity

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

getInstance

public static OptionalValidity getInstance(java.lang.Object o)

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

Returns:
a basic ASN.1 object representation.

Bouncy Castle Cryptography Library 1.79