mcne.asn1
Class TSTInfo

java.lang.Object
  |
  +--mcne.asn1.TSTInfo

public class TSTInfo
extends java.lang.Object


Field Summary
protected  Accuracy accuracy_
           
protected  X509Extensions extensions_
           
protected static boolean EXTENSIONS_IMPLICITLY_TAGGED
           
protected static int EXTENSIONS_TAG
           
protected  java.lang.String gen_time_
           
protected static int GEN_TIME_POS
           
static DERObjectIdentifier id_smime_ct_TSTInfo
           
protected  boolean is_nonce_set_
           
protected  MsgImprint message_imprint_
           
protected static int MESSAGE_IMPRINT_POS
           
protected  java.math.BigInteger nonce_
           
protected static int NUMBER_OF_MAX_COMPONENTS
           
protected static int NUMBER_OF_MIN_COMPONENTS
           
protected  boolean ordering_
           
protected  DERObjectIdentifier policy_
           
protected static int POLICY_POS
           
protected  java.math.BigInteger serial_number_
           
protected static int SERIAL_NUMBER_POS
           
protected  GeneralName tsa_
           
protected static boolean TSA_IMPLICITLY_TAGGED
           
protected static int TSA_TAG
           
protected  int version_
           
protected static int VERSION_POS
           
 
Constructor Summary
protected TSTInfo()
           
  TSTInfo(DERObject asn1object)
           
 
Method Summary
 void decode(java.io.InputStream inputstream)
           
protected  DERConstructedSequence generateASN1Object()
           
 Accuracy getAccuracy()
           
 int getBlockSize()
           
 DERObjectIdentifier getContentType()
           
 org.bouncycastle.asn1.DERObject getDERObject()
           
 byte[] getEncoded()
           
 X509Extensions getExtensions()
           
 java.lang.String getGenTime()
           
 MsgImprint getMessageImprint()
           
 java.math.BigInteger getNonce()
           
 boolean getOrdering()
           
 java.math.BigInteger getSerialNumber()
           
 GeneralName getTsa()
           
 DERObjectIdentifier getTSAPolicyID()
           
 int getVersion()
           
protected  void parseTSTInfoData(DERObject asn1object)
           
protected  void resetClassState()
           
 void setBlockSize(int i)
           
 void setExtensions(X509Extensions x509extensions)
           
 void setGenTime(java.lang.String s)
           
 void setMessageImprint(MsgImprint messageimprint)
           
 void setNonce(java.math.BigInteger biginteger)
           
 void setOrdering(boolean flag)
           
 void setSerialNumber(java.math.BigInteger biginteger)
           
 void setTsa(GeneralName generalname)
           
 void setTSAPolicyID(DERObjectIdentifier objectid)
           
 DERObject toASN1Object()
           
 java.lang.String toString()
           
 java.lang.String toString(boolean flag)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

is_nonce_set_

protected boolean is_nonce_set_

extensions_

protected X509Extensions extensions_

tsa_

protected GeneralName tsa_

nonce_

protected java.math.BigInteger nonce_

ordering_

protected boolean ordering_

accuracy_

protected Accuracy accuracy_

gen_time_

protected java.lang.String gen_time_

serial_number_

protected java.math.BigInteger serial_number_

message_imprint_

protected MsgImprint message_imprint_

policy_

protected DERObjectIdentifier policy_

version_

protected int version_

EXTENSIONS_IMPLICITLY_TAGGED

protected static final boolean EXTENSIONS_IMPLICITLY_TAGGED
See Also:
Constant Field Values

EXTENSIONS_TAG

protected static final int EXTENSIONS_TAG
See Also:
Constant Field Values

TSA_IMPLICITLY_TAGGED

protected static final boolean TSA_IMPLICITLY_TAGGED
See Also:
Constant Field Values

TSA_TAG

protected static final int TSA_TAG
See Also:
Constant Field Values

GEN_TIME_POS

protected static final int GEN_TIME_POS
See Also:
Constant Field Values

SERIAL_NUMBER_POS

protected static final int SERIAL_NUMBER_POS
See Also:
Constant Field Values

MESSAGE_IMPRINT_POS

protected static final int MESSAGE_IMPRINT_POS
See Also:
Constant Field Values

POLICY_POS

protected static final int POLICY_POS
See Also:
Constant Field Values

VERSION_POS

protected static final int VERSION_POS
See Also:
Constant Field Values

NUMBER_OF_MAX_COMPONENTS

protected static final int NUMBER_OF_MAX_COMPONENTS
See Also:
Constant Field Values

NUMBER_OF_MIN_COMPONENTS

protected static final int NUMBER_OF_MIN_COMPONENTS
See Also:
Constant Field Values

id_smime_ct_TSTInfo

public static DERObjectIdentifier id_smime_ct_TSTInfo
Constructor Detail

TSTInfo

public TSTInfo(DERObject asn1object)
        throws java.lang.RuntimeException

TSTInfo

protected TSTInfo()
Method Detail

toString

public java.lang.String toString(boolean flag)

toString

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

toASN1Object

public DERObject toASN1Object()

setTsa

public void setTsa(GeneralName generalname)
            throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException

setTSAPolicyID

public void setTSAPolicyID(DERObjectIdentifier objectid)
                    throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException

setSerialNumber

public void setSerialNumber(java.math.BigInteger biginteger)
                     throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException

setOrdering

public void setOrdering(boolean flag)

setNonce

public void setNonce(java.math.BigInteger biginteger)
              throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException

setMessageImprint

public void setMessageImprint(MsgImprint messageimprint)
                       throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException

setGenTime

public void setGenTime(java.lang.String s)
                throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException

setExtensions

public void setExtensions(X509Extensions x509extensions)
                   throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException

setBlockSize

public void setBlockSize(int i)

resetClassState

protected void resetClassState()

parseTSTInfoData

protected void parseTSTInfoData(DERObject asn1object)
                         throws java.lang.RuntimeException
java.lang.RuntimeException

getVersion

public int getVersion()

getTsa

public GeneralName getTsa()

getTSAPolicyID

public DERObjectIdentifier getTSAPolicyID()

getSerialNumber

public java.math.BigInteger getSerialNumber()

getOrdering

public boolean getOrdering()

getNonce

public java.math.BigInteger getNonce()

getMessageImprint

public MsgImprint getMessageImprint()

getGenTime

public java.lang.String getGenTime()

getExtensions

public X509Extensions getExtensions()

getEncoded

public byte[] getEncoded()

getContentType

public DERObjectIdentifier getContentType()

getBlockSize

public int getBlockSize()

getAccuracy

public Accuracy getAccuracy()

generateASN1Object

protected DERConstructedSequence generateASN1Object()

decode

public void decode(java.io.InputStream inputstream)
            throws java.io.IOException,
                   java.lang.RuntimeException
java.io.IOException
java.lang.RuntimeException

getDERObject

public org.bouncycastle.asn1.DERObject getDERObject()