public void addExtension(ASN1ObjectIdentifier oid,boolean critical,byte[] value){
  if (extensions.containsKey(oid)) {
    throw new IllegalArgumentException("extension " + oid + " already added");
  }
  extOrdering.addElement(oid);
  extensions.put(oid,new Extension(oid,critical,new DEROctetString(value)));
}

public void addExtension ( ASN1ObjectIdentifier oid , boolean critical , byte [ ] value ) { if ( extensions . containsKey ( oid ) ) { throw new IllegalArgumentException ( "extension " + oid + " already added" ) ; } extOrdering . addElement ( oid ) ; extensions . put ( oid , new Extension ( oid , critical , new DEROctetString ( value ) ) ) ; }
add an extension with the given oid and the passed in byte array to be wrapped in the octet string associated with the extension .
