issrg.ac
Class AttCertValidityPeriod

java.lang.Object
  extended by issrg.ac.AttCertValidityPeriod
All Implemented Interfaces:
java.lang.Cloneable

public class AttCertValidityPeriod
extends java.lang.Object
implements java.lang.Cloneable

This class represents the AttCertValidityPeriod ASN.1 construct, which is basically a sequence of two GeneralizedTime.


Field Summary
protected  Generalized_Time notAfterTime
           
protected  Generalized_Time notBeforeTime
           
 
Constructor Summary
protected AttCertValidityPeriod()
           
  AttCertValidityPeriod(AttCertValidityPeriod acvp)
          This constructor copies AttCertValidityPeriod.
  AttCertValidityPeriod(Generalized_Time notBeforeTime, Generalized_Time notAfterTime)
          This constructor builds a AttCertValidityPeriod given two GeneralizedTimes, one for notBefore, one for notAfter.
 
Method Summary
 java.lang.Object clone()
           
 void decode(ASN1Object ao)
          This method decodes a given ASN1Object.
 Generalized_Time getNotAfter()
          Returns notAfter time.
 Generalized_Time getNotBefore()
          Returns notBefore time.
 void setNotAfter(Generalized_Time notAfter)
          Sets notAfter time.
 void setNotBefore(Generalized_Time notBefore)
          Sets notBefore time.
 ASN1Object toASN1Object()
          This method returns the ASN1Object of AttCertValidityPeriod.
 java.lang.String toString()
           
 java.lang.String toString(java.lang.String ident)
           
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

notBeforeTime

protected Generalized_Time notBeforeTime

notAfterTime

protected Generalized_Time notAfterTime
Constructor Detail

AttCertValidityPeriod

protected AttCertValidityPeriod()

AttCertValidityPeriod

public AttCertValidityPeriod(AttCertValidityPeriod acvp)
This constructor copies AttCertValidityPeriod.

Parameters:
acvp - - the AttCertValidityPeriod to copy

AttCertValidityPeriod

public AttCertValidityPeriod(Generalized_Time notBeforeTime,
                             Generalized_Time notAfterTime)
This constructor builds a AttCertValidityPeriod given two GeneralizedTimes, one for notBefore, one for notAfter.

Parameters:
notBeforeTime - - the notBefore Generalized_Time
notAfterTime - - the notAfter Generalized_Time
Method Detail

getNotBefore

public Generalized_Time getNotBefore()
Returns notBefore time.


setNotBefore

public void setNotBefore(Generalized_Time notBefore)
Sets notBefore time.


getNotAfter

public Generalized_Time getNotAfter()
Returns notAfter time.


setNotAfter

public void setNotAfter(Generalized_Time notAfter)
Sets notAfter time.


toASN1Object

public ASN1Object toASN1Object()
                        throws CodingException
This method returns the ASN1Object of AttCertValidityPeriod.

Returns:
a SEQUENCE of two GeneralizedTime
Throws:
CodingException

decode

public void decode(ASN1Object ao)
            throws CodingException
This method decodes a given ASN1Object.

Parameters:
ao - - the ASN1Object to decode; must be a SEQUENCE of two GeneralizedTime
Throws:
CodingException

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

toString

public java.lang.String toString(java.lang.String ident)

clone

public java.lang.Object clone()
Overrides:
clone in class java.lang.Object