MCPcopy Create free account
hub / github.com/DeNA/PacketProxy / algorithmToName

Method algorithmToName

src/main/java/core/org/xbill/DNS/TSIG.java:61–71  ·  view source on GitHub ↗
(String alg)

Source from the content-addressed store, hash-verified

59}
60
61public static Name
62algorithmToName(String alg)
63{
64 Iterator it = algMap.entrySet().iterator();
65 while (it.hasNext()) {
66 Map.Entry entry = (Map.Entry) it.next();
67 if (alg.equalsIgnoreCase((String)entry.getValue()))
68 return (Name) entry.getKey();
69 }
70 throw new IllegalArgumentException("Unknown algorithm");
71}
72public static String
73nameToAlgorithm(Name name)
74{

Callers 1

TSIGMethod · 0.95

Calls 6

entrySetMethod · 0.80
hasNextMethod · 0.80
nextMethod · 0.80
iteratorMethod · 0.45
getValueMethod · 0.45
getKeyMethod · 0.45

Tested by

no test coverage detected