Skip to content

Commit

Permalink
Spotless
Browse files Browse the repository at this point in the history
Signed-off-by: Derek Ho <[email protected]>
  • Loading branch information
derek-ho committed Jan 14, 2025
1 parent d9cf78d commit d7b7e47
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -141,9 +141,7 @@ public ExpiringBearerAuthToken issueOnBehalfOfToken(final Subject subject, final

public ExpiringBearerAuthToken issueApiToken(final String name, final Long expiration) {
if (!issueApiTokenAllowed()) {
throw new OpenSearchSecurityException(
"Api token generation is not enabled."
);
throw new OpenSearchSecurityException("Api token generation is not enabled.");
}
final User user = threadPool.getThreadContext().getTransient(ConfigConstants.OPENDISTRO_SECURITY_USER);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@

package org.opensearch.security.authtoken.jwt;

import java.io.IOException;
import java.nio.charset.StandardCharsets;
import java.util.Date;
import java.util.List;
Expand Down Expand Up @@ -39,7 +38,6 @@
import com.nimbusds.jose.JWSSigner;
import com.nimbusds.jose.jwk.JWK;
import com.nimbusds.jwt.SignedJWT;
import joptsimple.internal.Strings;
import org.mockito.ArgumentCaptor;

import static org.hamcrest.MatcherAssert.assertThat;
Expand Down

0 comments on commit d7b7e47

Please sign in to comment.