/** * This method returns true if the inputStream starts with an ASN.1 Sequence * * @param is * the inputstream to be tested * @return true if DER encoded */ public static boolean isStartWithASN1SequenceTag(InputStream is) { byte firstByte = readFirstByte(new InMemoryDocument(is)); return DSSASN1Utils.isASN1SequenceTag(firstByte); }