public static Name
algorithmToName(String alg)
{
	Iterator it = algMap.entrySet().iterator();
	while (it.hasNext()) {
		Map.Entry entry = (Map.Entry) it.next();
		if (alg.equalsIgnoreCase((String)entry.getValue()))
			return (Name) entry.getKey();
	}
	throw new IllegalArgumentException("Unknown algorithm");
}
The domain name representing the HMAC-SHA512 algorithm.
src/main/java/core/org/xbill/DNS/TSIG.java