code: public static AlgorithmId get(AlgorithmParameters algparams)
              throws NoSuchAlgorithmException {
          ObjectIdentifier oid;
          String algname = algparams.getAlgorithm();
          try {
              oid = algOID(algname);
          } catch (IOException ioe) {
              throw new NoSuchAlgorithmException
                  ("Invalid ObjectIdentifier " + algname);
          }
          if (oid == null) {
              throw new NoSuchAlgorithmException
                  ("unrecognized algorithm name: " + algname);
          }
          return new AlgorithmId(oid, algparams);
      }
docs: Returns one of the algorithm IDs most commonly associated
  with this algorithm parameters.
  
  @param algparams the associated algorithm parameters.
  @exception NoSuchAlgorithmException on error.