Skip to content

Commit 7d21674

Browse files
author
elasticsearchmachine
committed
[CI] Auto commit changes from spotless
1 parent 9f4a299 commit 7d21674

File tree

1 file changed

+5
-7
lines changed
  • x-pack/plugin/security/src/main/java/org/elasticsearch/xpack/security/authc

1 file changed

+5
-7
lines changed

x-pack/plugin/security/src/main/java/org/elasticsearch/xpack/security/authc/TokenService.java

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,7 @@
4848
import org.elasticsearch.common.cache.CacheBuilder;
4949
import org.elasticsearch.common.io.stream.BytesStreamOutput;
5050
import org.elasticsearch.common.io.stream.InputStreamStreamInput;
51-
import org.elasticsearch.common.io.stream.OutputStreamStreamOutput;
5251
import org.elasticsearch.common.io.stream.StreamInput;
53-
import org.elasticsearch.common.io.stream.StreamOutput;
5452
import org.elasticsearch.common.settings.SecureString;
5553
import org.elasticsearch.common.settings.Setting;
5654
import org.elasticsearch.common.settings.Setting.Property;
@@ -59,7 +57,6 @@
5957
import org.elasticsearch.common.util.concurrent.AbstractRunnable;
6058
import org.elasticsearch.common.util.concurrent.ThreadContext;
6159
import org.elasticsearch.core.Nullable;
62-
import org.elasticsearch.core.Streams;
6360
import org.elasticsearch.core.SuppressForbidden;
6461
import org.elasticsearch.core.TimeValue;
6562
import org.elasticsearch.core.Tuple;
@@ -94,10 +91,8 @@
9491
import org.elasticsearch.xpack.security.support.SecurityIndexManager.IndexState;
9592

9693
import java.io.ByteArrayInputStream;
97-
import java.io.ByteArrayOutputStream;
9894
import java.io.Closeable;
9995
import java.io.IOException;
100-
import java.io.OutputStream;
10196
import java.io.UncheckedIOException;
10297
import java.nio.ByteBuffer;
10398
import java.nio.charset.StandardCharsets;
@@ -134,7 +129,6 @@
134129

135130
import javax.crypto.Cipher;
136131
import javax.crypto.CipherInputStream;
137-
import javax.crypto.CipherOutputStream;
138132
import javax.crypto.NoSuchPaddingException;
139133
import javax.crypto.SecretKey;
140134
import javax.crypto.SecretKeyFactory;
@@ -590,7 +584,11 @@ private void getTokenDocById(
590584
// if the index or the shard is not there / available we assume that
591585
// the token is not valid
592586
if (isShardNotAvailableException(e)) {
593-
logger.warn("failed to get token doc [{}] because index [{}] is not available", tokenId, securityTokensIndex.aliasName());
587+
logger.warn(
588+
"failed to get token doc [{}] because index [{}] is not available",
589+
tokenId,
590+
securityTokensIndex.aliasName()
591+
);
594592
} else {
595593
logger.error(() -> "failed to get token doc [" + tokenId + "]", e);
596594
}

0 commit comments

Comments
 (0)