Skip to content

Commit

Permalink
Log warning about different keys
Browse files Browse the repository at this point in the history
  • Loading branch information
stelar7 committed Nov 24, 2022
1 parent 061adba commit d35d4e9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/main/java/no/stelar7/api/r4j/basic/APICredentials.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import no.stelar7.api.r4j.basic.utils.Base32;

import java.security.*;
import java.util.logging.Logger;

public class APICredentials
{
Expand All @@ -29,6 +30,10 @@ public APICredentials(final String lol, final String tournament, final String tf
this.TFTAPIKey = tft;
this.LORAPIKey = lor;
this.VALAPIKey = val;

if (lol != null && tournament != null && !lol.equals(tournament)) {
Logger.getGlobal().warning("Using different keys for league and tournament might lead to decryption exceptions");
}
}


Expand Down

0 comments on commit d35d4e9

Please sign in to comment.