for ( Enumeration e = sequence.getObjects(); e.hasMoreElements(); )
{
DERTaggedObject object = ( ( DERTaggedObject ) e.nextElement() );
int tag = object.getTagNo();
DEREncodable derObject = object.getObject();
switch ( tag )
{
case 0:
DEROctetString tag0 = ( DEROctetString ) derObject;
modifier.setNewPassword( tag0.getOctets() );