super("X.509");
try {
if ( encoding.equals( "PkiPath" ) )
{
DERInputStream derInStream = new DERInputStream(inStream);
DERObject derObject = derInStream.readObject();
if ( derObject == null || ! ( derObject instanceof ASN1Sequence ) )
{
throw new CertificateException("input stream does not contain a ASN1 SEQUENCE while reading PkiPath encoded data to load CertPath" );
}
Enumeration enumx = ((ASN1Sequence)derObject).getObjects();