Usermanagement fixed
This commit is contained in:
parent
68098b1fff
commit
ef819e5e54
@ -20,7 +20,7 @@ public class VerificationUtil {
|
||||
public static void fetchPublicKey() {
|
||||
RestTemplate restTemplate = new RestTemplate();
|
||||
try {
|
||||
PublicKey response = restTemplate.getForObject("http://seserver.se.hs-heilbronn.de:9080/buga19usermanagement/token/publickey", PublicKey.class);
|
||||
PublicKey response = restTemplate.getForObject("http://seserver.se.hs-heilbronn.de:8090/buga19usermanagement/token/publickey", PublicKey.class);
|
||||
byte[] decodedKey = Base64.getDecoder().decode(response.getMessage());
|
||||
KeyFactory factory = KeyFactory.getInstance("RSA");
|
||||
X509EncodedKeySpec publicKeySpec = new X509EncodedKeySpec(decodedKey);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user