File tree Expand file tree Collapse file tree 3 files changed +6
-8
lines changed
key-pair-loader/src/main/java/com/onixbyte/security/impl
simple-jwt-authzero/src/main/java/com/onixbyte/simplejwt/authzero Expand file tree Collapse file tree 3 files changed +6
-8
lines changed Original file line number Diff line number Diff line change 5353 * @version 2.0.0
5454 * @since 2.0.0
5555 */
56- public class EcKeyLoader implements KeyLoader {
56+ public class ECKeyLoader implements KeyLoader {
5757
5858 private final KeyFactory keyFactory ;
5959
@@ -62,7 +62,7 @@ public class EcKeyLoader implements KeyLoader {
6262 /**
6363 * Initialise a key loader for EC-based algorithms.
6464 */
65- public EcKeyLoader () {
65+ public ECKeyLoader () {
6666 try {
6767 this .keyFactory = KeyFactory .getInstance ("EC" );
6868 this .decoder = Base64 .getDecoder ();
Original file line number Diff line number Diff line change 4444 * @see KeyLoader
4545 * @see KeyLoadingException
4646 */
47- public class RsaKeyLoader implements KeyLoader {
47+ public class RSAKeyLoader implements KeyLoader {
4848
4949 private final Base64 .Decoder decoder ;
5050 private final KeyFactory keyFactory ;
@@ -55,7 +55,7 @@ public class RsaKeyLoader implements KeyLoader {
5555 * This constructor initialises the Base64 decoder and the RSA {@link KeyFactory}. It may throw
5656 * a {@link KeyLoadingException} if the RSA algorithm is not available.
5757 */
58- public RsaKeyLoader () {
58+ public RSAKeyLoader () {
5959 try {
6060 this .decoder = Base64 .getDecoder ();
6161 this .keyFactory = KeyFactory .getInstance ("RSA" );
Original file line number Diff line number Diff line change 1919
2020import com .onixbyte .devkit .utils .Base64Util ;
2121import com .onixbyte .guid .GuidCreator ;
22- import com .onixbyte .security .KeyLoader ;
23- import com .onixbyte .security .impl .EcKeyLoader ;
22+ import com .onixbyte .security .impl .ECKeyLoader ;
2423import com .onixbyte .simplejwt .TokenPayload ;
2524import com .onixbyte .simplejwt .TokenResolver ;
2625import com .onixbyte .simplejwt .annotations .ExcludeFromPayload ;
4342import org .slf4j .LoggerFactory ;
4443
4544import java .lang .reflect .InvocationTargetException ;
46- import java .security .NoSuchAlgorithmException ;
4745import java .security .interfaces .ECPrivateKey ;
4846import java .security .interfaces .ECPublicKey ;
4947import java .time .Duration ;
@@ -179,7 +177,7 @@ public Builder secret(String secret) {
179177 * @return the builder instance
180178 */
181179 public Builder keyPair (String publicKey , String privateKey ) {
182- var keyLoader = new EcKeyLoader ();
180+ var keyLoader = new ECKeyLoader ();
183181 this .publicKey = keyLoader .loadPublicKey (publicKey );
184182 this .privateKey = keyLoader .loadPrivateKey (privateKey );
185183 return this ;
You can’t perform that action at this time.
0 commit comments