Skip to content

Commit

Permalink
Version bump
Browse files Browse the repository at this point in the history
Signed-off-by: Stephen Crawford <[email protected]>
  • Loading branch information
stephen-crawford committed Oct 10, 2022
1 parent ceb395e commit 19ada6f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ public Principal extractPrincipal(PrincipalIdentifierToken token) throws Illegal
byte[] principalEncoding = principalCipher.doFinal(principalNameEncodedBytes);
String principalName = principalEncoding.toString();

//Have to be able to look at the principals and find the match if you want to actually return the Principal object and not just a String
//Have to be able to look at the principals and find the match if you want to actually return the Principal object and not just a String
for (Principal p : Principals){
if (p.NAME.equals(principalName)) {
return p;
Expand All @@ -168,7 +168,7 @@ public void validateToken(PrincipalIdentifierToken token) throws IllegalArgument

//TODO: This may not work after the conversion back and forth to Strings and byte[]s, check afterwards
/*
String[] parts = token.getWriteableName().split(String.format("*{%d}", KEY_SIZE));
String[] parts = token.getWriteableName().split(String.format("*{%d}", 2*KEY_SIZE));
// check whether token is malformed
if (parts.length != 2) {
Expand Down

0 comments on commit 19ada6f

Please sign in to comment.