import com.google.common.base.Objects;
import com.google.common.net.InetAddresses;
-
import java.io.IOException;
import java.net.InetSocketAddress;
import java.net.SocketAddress;
-import java.security.PublicKey;
-import java.security.spec.InvalidKeySpecException;
import java.security.NoSuchAlgorithmException;
import java.security.NoSuchProviderException;
+import java.security.PublicKey;
+import java.security.spec.InvalidKeySpecException;
import java.util.Collection;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.ConcurrentMap;
final Credentials credentials = deviceCred != null ? deviceCred : globalConfig.getCredentials();
if (credentials == null) {
- LOG.info("No credentials found for {}, rejecting.",remoteAddress);
+ LOG.info("No credentials found for {}, rejecting.", remoteAddress);
return CallHomeAuthorization.rejected();
}
try {
skey = AuthorizedKeysDecoder.encodePublicKey(serverKey);
return byPublicKey.get(skey);
- }
- catch (IOException | IllegalArgumentException e) {
+ } catch (IOException | IllegalArgumentException e) {
LOG.error("Unable to encode server key: {}", skey, e);
return null;
}