Search in sources :

Example 1 with XteaClient

use of net.runelite.http.api.xtea.XteaClient in project runelite by runelite.

the class XteaKeyManager method loadKeys.

public void loadKeys() {
    XteaClient xteaClient = new XteaClient();
    try {
        for (XteaKey key : xteaClient.get()) {
            keys.put(key.getRegion(), key.getKeys());
        }
    } catch (IOException ex) {
        // happens on release when it is not deployed yet
        logger.debug("unable to load xtea keys", ex);
        return;
    }
    logger.info("Loaded {} keys", keys.size());
}
Also used : XteaKey(net.runelite.http.api.xtea.XteaKey) IOException(java.io.IOException) XteaClient(net.runelite.http.api.xtea.XteaClient)

Aggregations

IOException (java.io.IOException)1 XteaClient (net.runelite.http.api.xtea.XteaClient)1 XteaKey (net.runelite.http.api.xtea.XteaKey)1