}
protected EncryptedTimeStamp decodeEncryptedTimestamp( DERSequence sequence )
{
EncryptedTimeStampModifier modifier = new EncryptedTimeStampModifier();
for ( Enumeration e = sequence.getObjects(); e.hasMoreElements(); )
{
DERTaggedObject object = ( DERTaggedObject ) e.nextElement();
int tag = object.getTagNo();
DEREncodable derObject = object.getObject();
switch ( tag )
{
case 0:
DERGeneralizedTime tag0 = ( DERGeneralizedTime ) derObject;
modifier.setKerberosTime( KerberosTimeDecoder.decode( tag0 ) );
break;
case 1:
DERInteger tag1 = ( DERInteger ) derObject;
modifier.setMicroSecond( tag1.intValue() );
break;
}
}
return modifier.getEncryptedTimestamp();
}