Issue-ID: AAF-1118
Signed-off-by: edyta <edyta.krukowska@nokia.com>
Change-Id: Ie9512a772c64a4217539eb80c3b31f90054fab33
public class KeyPairFactory {
public class KeyPairFactory {
- private final Logger LOGGER = LoggerFactory.getLogger(KeyPairFactory.class);
+ private final static Logger LOGGER = LoggerFactory.getLogger(KeyPairFactory.class);
private final String encryptionAlgorithm;
private final int keySize;
private final String encryptionAlgorithm;
private final int keySize;
LOGGER.info("KeyPair generation started with algorithm: {} and key size: {}", encryptionAlgorithm, keySize);
return createKeyPairGenerator().generateKeyPair();
} catch (NoSuchAlgorithmException e) {
LOGGER.info("KeyPair generation started with algorithm: {} and key size: {}", encryptionAlgorithm, keySize);
return createKeyPairGenerator().generateKeyPair();
} catch (NoSuchAlgorithmException e) {
- LOGGER.error("Generation of KeyPair failed, exception message: {}" , e.getMessage());
+ LOGGER.error("Generation of KeyPair failed, exception message: {}", e.getMessage());
throw new KeyPairGenerationException(e);
}
}
throw new KeyPairGenerationException(e);
}
}