Skip to content

Commit

Permalink
[TEST] 애플 로그인 테스트
Browse files Browse the repository at this point in the history
  • Loading branch information
ChaeAg committed Nov 17, 2024
1 parent fb11a52 commit d59b156
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
import io.jsonwebtoken.JwtException;
import io.jsonwebtoken.Jwts;
import io.jsonwebtoken.UnsupportedJwtException;
import java.io.FileReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.math.BigInteger;
import java.security.KeyFactory;
import java.security.NoSuchAlgorithmException;
Expand Down Expand Up @@ -220,7 +220,7 @@ private byte[] readPrivateKey(String keyPath) {
Resource resource = new ClassPathResource(keyPath);
System.out.println("Resource exists: " + resource.exists());
System.out.println("Resource file path: " + resource.getFilename());
try (PemReader pemReader = new PemReader(new FileReader(resource.getFile()))) {
try (PemReader pemReader = new PemReader(new InputStreamReader(resource.getInputStream()))) {
PemObject pemObject = pemReader.readPemObject();
return pemObject.getContent();
} catch (IOException e) {
Expand Down

0 comments on commit d59b156

Please sign in to comment.