enc-part[2] EncryptedData
}
*/
private ApplicationReply decodeApplicationRequestSequence( DERSequence sequence )
{
ApplicationReply authHeader = null;
for ( Enumeration e = sequence.getObjects(); e.hasMoreElements(); )
{
DERTaggedObject object = ( ( DERTaggedObject ) e.nextElement() );
int tag = object.getTagNo();
DEREncodable derObject = object.getObject();
switch ( tag )
{
case 0:
//DERInteger tag0 = ( DERInteger ) derObject;
//authHeader.setProtocolVersionNumber( tag0.intValue() );
break;
case 1:
//DERInteger tag1 = ( DERInteger ) derObject;
//authHeader.setMessageType( MessageType.getTypeByOrdinal( tag1.intValue() ) );
break;
case 2:
DERSequence tag2 = ( DERSequence ) derObject;
authHeader = new ApplicationReply( EncryptedDataDecoder.decode( tag2 ) );
break;
}
}
return authHeader;