issrg.ac
Class AttCertValidityPeriod

java.lang.Object
  extended by issrg.ac.AttCertValidityPeriod
All Implemented Interfaces:
iaik.asn1.ASN1Type, java.lang.Cloneable

public class AttCertValidityPeriod
extends java.lang.Object
implements iaik.asn1.ASN1Type, 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(iaik.asn1.ASN1Object ao)
          This constructor builds a AttCertValidityPeriod from a given ASN1Object.
  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(iaik.asn1.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.
 iaik.asn1.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

AttCertValidityPeriod

public AttCertValidityPeriod(iaik.asn1.ASN1Object ao)
                      throws iaik.asn1.CodingException
This constructor builds a AttCertValidityPeriod from a given ASN1Object.

Parameters:
ao - - the ASN1Object containing a sequence of two GeneralizedTimes
Throws:
iaik.asn1.CodingException
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 iaik.asn1.ASN1Object toASN1Object()
                                  throws iaik.asn1.CodingException
This method returns the ASN1Object of AttCertValidityPeriod.

Specified by:
toASN1Object in interface iaik.asn1.ASN1Type
Returns:
a SEQUENCE of two GeneralizedTime
Throws:
iaik.asn1.CodingException

decode

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

Specified by:
decode in interface iaik.asn1.ASN1Type
Parameters:
ao - - the ASN1Object to decode; must be a SEQUENCE of two GeneralizedTime
Throws:
iaik.asn1.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