refactor: renamed key pair loader

This commit is contained in:
siujamo
2025-06-09 11:49:27 +08:00
parent 579a2e2e35
commit 6ac9f1ae49
3 changed files with 6 additions and 8 deletions
@@ -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();
@@ -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");