public Oid(InputStream derOid) throws GSSException {
  try {
    DerValue derVal=new DerValue(derOid);
    derEncoding=derVal.toByteArray();
    oid=derVal.getOID();
  }
 catch (  IOException e) {
    throw new GSSException(GSSException.FAILURE,"Improperly formatted ASN.1 DER encoding for Oid");
  }
}

public Oid ( InputStream derOid ) throws GSSException { try { DerValue derVal = new DerValue ( derOid ) ; derEncoding = derVal . toByteArray ( ) ; oid = derVal . getOID ( ) ; } catch ( IOException e ) { throw new GSSException ( GSSException . FAILURE , "Improperly formatted ASN.1 DER encoding for Oid" ) ; } }
creates an oid object from its asn . 1 der encoding . this refers to the full encoding including tag and length . the structure and encoding of oids is defined in isoiec - 8824 and isoiec - 8825 . this method is identical in functionality to its byte array counterpart .
