code: public static String
  algString(int alg) throws UnsupportedAlgorithmException {
  	switch (alg) {
  	case Algorithm.RSAMD5:
  		return "MD5withRSA";
  	case Algorithm.DSA:
  	case Algorithm.DSA_NSEC3_SHA1:
  		return "SHA1withDSA";
  	case Algorithm.RSASHA1:
  	case Algorithm.RSA_NSEC3_SHA1:
  		return "SHA1withRSA";
  	case Algorithm.RSASHA256:
  		return "SHA256withRSA";
  	case Algorithm.RSASHA512:
  		return "SHA512withRSA";
  	default:
  		throw new UnsupportedAlgorithmException(alg);
  	}
  }
docs: Convert an algorithm number to the corresponding JCA string.
  @param alg The algorithm number.
  @throws UnsupportedAlgorithmException The algorithm is unknown.