refactor: renamed key pair loader
This commit is contained in:
+2
-2
@@ -53,7 +53,7 @@ import java.util.Base64;
|
||||
* @version 2.0.0
|
||||
* @since 2.0.0
|
||||
*/
|
||||
public class EcKeyLoader implements KeyLoader {
|
||||
public class ECKeyLoader implements KeyLoader {
|
||||
|
||||
private final KeyFactory keyFactory;
|
||||
|
||||
@@ -62,7 +62,7 @@ public class EcKeyLoader implements KeyLoader {
|
||||
/**
|
||||
* Initialise a key loader for EC-based algorithms.
|
||||
*/
|
||||
public EcKeyLoader() {
|
||||
public ECKeyLoader() {
|
||||
try {
|
||||
this.keyFactory = KeyFactory.getInstance("EC");
|
||||
this.decoder = Base64.getDecoder();
|
||||
+2
-2
@@ -44,7 +44,7 @@ import java.util.Base64;
|
||||
* @see KeyLoader
|
||||
* @see KeyLoadingException
|
||||
*/
|
||||
public class RsaKeyLoader implements KeyLoader {
|
||||
public class RSAKeyLoader implements KeyLoader {
|
||||
|
||||
private final Base64.Decoder decoder;
|
||||
private final KeyFactory keyFactory;
|
||||
@@ -55,7 +55,7 @@ public class RsaKeyLoader implements KeyLoader {
|
||||
* This constructor initialises the Base64 decoder and the RSA {@link KeyFactory}. It may throw
|
||||
* a {@link KeyLoadingException} if the RSA algorithm is not available.
|
||||
*/
|
||||
public RsaKeyLoader() {
|
||||
public RSAKeyLoader() {
|
||||
try {
|
||||
this.decoder = Base64.getDecoder();
|
||||
this.keyFactory = KeyFactory.getInstance("RSA");
|
||||
Reference in New Issue
Block a user