Skip to content

Commit

Permalink
typo fix
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 11, 2022
1 parent dbe0923 commit 76e5af5
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ public PrincipalIdentifierToken generateToken(Principal principal) throws NoSuch
*
* @opensearch.internal
*
* This method contains a placeholder simplementation.
* This method contains a placeholder implementation.
* More concrete implementation will be covered in https://github.com/opensearch-project/OpenSearch/issues/4485
*/
public Principal extractPrincipal(PrincipalIdentifierToken token) throws IllegalArgumentException {
Expand All @@ -138,7 +138,6 @@ public Principal extractPrincipal(PrincipalIdentifierToken token) throws Illegal
byte[] principalNameEncodedBytes = Arrays.copyOfRange(token_bytes, 0, KEY_SIZE);
byte[] extensionNameEncodedBytes = Arrays.copyOfRange(token_bytes, KEY_SIZE, token_bytes.length);


Cipher principalCipher = Cipher.getInstance(ALGORITHM);
principalCipher.init(Cipher.DECRYPT_MODE, this.secretKey, new GCMParameterSpec(TAG_LENGTH, this.initializationVector));
byte[] principalEncoding = principalCipher.doFinal(principalNameEncodedBytes);
Expand Down

0 comments on commit 76e5af5

Please sign in to comment.