Skip to content

Commit 3436f63

Browse files
author
elasticsearchmachine
committed
[CI] Auto commit changes from spotless
1 parent ecdf6eb commit 3436f63

File tree

18 files changed

+24
-25
lines changed

18 files changed

+24
-25
lines changed

x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/authc/service/ServiceAccountToken.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@
1414
import org.elasticsearch.common.settings.SecureString;
1515
import org.elasticsearch.core.CharArrays;
1616
import org.elasticsearch.xpack.core.security.authc.AuthenticationToken;
17+
import org.elasticsearch.xpack.core.security.authc.service.ServiceAccount.ServiceAccountId;
1718
import org.elasticsearch.xpack.core.security.authc.support.UsernamePasswordToken;
1819
import org.elasticsearch.xpack.core.security.support.Validation;
19-
import org.elasticsearch.xpack.core.security.authc.service.ServiceAccount.ServiceAccountId;
2020

2121
import java.io.ByteArrayInputStream;
2222
import java.io.ByteArrayOutputStream;

x-pack/plugin/core/src/test/java/org/elasticsearch/xpack/core/security/authc/service/ServiceAccountTokenTests.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,9 @@
99

1010
import org.elasticsearch.common.settings.SecureString;
1111
import org.elasticsearch.test.ESTestCase;
12-
import org.elasticsearch.xpack.core.security.authc.service.ServiceAccountToken;
12+
import org.elasticsearch.xpack.core.security.authc.service.ServiceAccount.ServiceAccountId;
1313
import org.elasticsearch.xpack.core.security.support.Validation;
1414
import org.elasticsearch.xpack.core.security.support.ValidationTests;
15-
import org.elasticsearch.xpack.core.security.authc.service.ServiceAccount.ServiceAccountId;
1615

1716
import java.io.IOException;
1817

x-pack/plugin/security/src/main/java/org/elasticsearch/xpack/security/action/service/TransportGetServiceAccountNodesCredentialsAction.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121
import org.elasticsearch.xpack.core.security.action.service.GetServiceAccountCredentialsNodesResponse;
2222
import org.elasticsearch.xpack.core.security.action.service.GetServiceAccountNodesCredentialsAction;
2323
import org.elasticsearch.xpack.core.security.action.service.TokenInfo;
24-
import org.elasticsearch.xpack.security.authc.service.FileServiceAccountTokenStore;
2524
import org.elasticsearch.xpack.core.security.authc.service.ServiceAccount.ServiceAccountId;
25+
import org.elasticsearch.xpack.security.authc.service.FileServiceAccountTokenStore;
2626

2727
import java.io.IOException;
2828
import java.util.List;

x-pack/plugin/security/src/main/java/org/elasticsearch/xpack/security/audit/logfile/LoggingAuditTrail.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@
9797
import org.elasticsearch.xpack.core.security.authc.AuthenticationField;
9898
import org.elasticsearch.xpack.core.security.authc.AuthenticationToken;
9999
import org.elasticsearch.xpack.core.security.authc.service.ServiceAccountSettings;
100+
import org.elasticsearch.xpack.core.security.authc.service.ServiceAccountToken;
100101
import org.elasticsearch.xpack.core.security.authz.AuthorizationEngine.AuthorizationInfo;
101102
import org.elasticsearch.xpack.core.security.authz.RoleDescriptor;
102103
import org.elasticsearch.xpack.core.security.authz.privilege.ConfigurableClusterPrivileges;
@@ -110,7 +111,6 @@
110111
import org.elasticsearch.xpack.security.audit.AuditTrail;
111112
import org.elasticsearch.xpack.security.audit.AuditUtil;
112113
import org.elasticsearch.xpack.security.authc.ApiKeyService;
113-
import org.elasticsearch.xpack.core.security.authc.service.ServiceAccountToken;
114114
import org.elasticsearch.xpack.security.rest.RemoteHostHeader;
115115
import org.elasticsearch.xpack.security.transport.filter.IPFilter;
116116
import org.elasticsearch.xpack.security.transport.filter.SecurityIpFilterRule;

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
import org.elasticsearch.xpack.core.security.authc.Authentication;
1616
import org.elasticsearch.xpack.core.security.authc.AuthenticationResult;
1717
import org.elasticsearch.xpack.core.security.authc.AuthenticationToken;
18-
import org.elasticsearch.xpack.security.authc.service.ServiceAccountService;
1918
import org.elasticsearch.xpack.core.security.authc.service.ServiceAccountToken;
19+
import org.elasticsearch.xpack.security.authc.service.ServiceAccountService;
2020
import org.elasticsearch.xpack.security.metric.InstrumentedSecurityActionListener;
2121
import org.elasticsearch.xpack.security.metric.SecurityMetricType;
2222
import org.elasticsearch.xpack.security.metric.SecurityMetrics;

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@
2222
import org.elasticsearch.xpack.core.XPackPlugin;
2323
import org.elasticsearch.xpack.core.security.action.service.TokenInfo;
2424
import org.elasticsearch.xpack.core.security.action.service.TokenInfo.TokenSource;
25+
import org.elasticsearch.xpack.core.security.authc.service.ServiceAccount.ServiceAccountId;
2526
import org.elasticsearch.xpack.core.security.authc.service.ServiceAccountToken;
2627
import org.elasticsearch.xpack.core.security.authc.support.Hasher;
2728
import org.elasticsearch.xpack.core.security.support.NoOpLogger;
2829
import org.elasticsearch.xpack.security.PrivilegedFileWatcher;
29-
import org.elasticsearch.xpack.core.security.authc.service.ServiceAccount.ServiceAccountId;
3030
import org.elasticsearch.xpack.security.support.CacheInvalidatorRegistry;
3131
import org.elasticsearch.xpack.security.support.FileLineParser;
3232
import org.elasticsearch.xpack.security.support.FileReloadListener;

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@
2121
import org.elasticsearch.core.Predicates;
2222
import org.elasticsearch.env.Environment;
2323
import org.elasticsearch.xpack.core.XPackSettings;
24+
import org.elasticsearch.xpack.core.security.authc.service.ServiceAccount.ServiceAccountId;
2425
import org.elasticsearch.xpack.core.security.authc.service.ServiceAccountToken;
26+
import org.elasticsearch.xpack.core.security.authc.service.ServiceAccountToken.ServiceAccountTokenId;
2527
import org.elasticsearch.xpack.core.security.authc.support.Hasher;
2628
import org.elasticsearch.xpack.core.security.support.Validation;
27-
import org.elasticsearch.xpack.core.security.authc.service.ServiceAccount.ServiceAccountId;
28-
import org.elasticsearch.xpack.core.security.authc.service.ServiceAccountToken.ServiceAccountTokenId;
2929
import org.elasticsearch.xpack.security.support.FileAttributesChecker;
3030

3131
import java.nio.file.Path;

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,10 @@
4747
import org.elasticsearch.xpack.core.security.action.service.TokenInfo.TokenSource;
4848
import org.elasticsearch.xpack.core.security.authc.Authentication;
4949
import org.elasticsearch.xpack.core.security.authc.Subject;
50-
import org.elasticsearch.xpack.core.security.authc.service.ServiceAccountToken;
51-
import org.elasticsearch.xpack.core.security.authc.support.Hasher;
5250
import org.elasticsearch.xpack.core.security.authc.service.ServiceAccount.ServiceAccountId;
51+
import org.elasticsearch.xpack.core.security.authc.service.ServiceAccountToken;
5352
import org.elasticsearch.xpack.core.security.authc.service.ServiceAccountToken.ServiceAccountTokenId;
53+
import org.elasticsearch.xpack.core.security.authc.support.Hasher;
5454
import org.elasticsearch.xpack.security.support.CacheInvalidatorRegistry;
5555
import org.elasticsearch.xpack.security.support.SecurityIndexManager;
5656
import org.elasticsearch.xpack.security.support.SecurityIndexManager.IndexState;

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@
2626
import org.elasticsearch.xpack.core.security.action.service.TokenInfo.TokenSource;
2727
import org.elasticsearch.xpack.core.security.authc.Authentication;
2828
import org.elasticsearch.xpack.core.security.authc.service.ServiceAccount;
29+
import org.elasticsearch.xpack.core.security.authc.service.ServiceAccount.ServiceAccountId;
2930
import org.elasticsearch.xpack.core.security.authc.service.ServiceAccountToken;
3031
import org.elasticsearch.xpack.core.security.authc.service.ServiceAccountTokenStore;
3132
import org.elasticsearch.xpack.core.security.authz.RoleDescriptor;
3233
import org.elasticsearch.xpack.core.security.user.User;
33-
import org.elasticsearch.xpack.core.security.authc.service.ServiceAccount.ServiceAccountId;
3434

3535
import java.util.Collection;
3636
import java.util.List;

x-pack/plugin/security/src/test/java/org/elasticsearch/xpack/security/audit/logfile/LoggingAuditTrailTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,9 @@
102102
import org.elasticsearch.xpack.core.security.authc.AuthenticationTestHelper;
103103
import org.elasticsearch.xpack.core.security.authc.AuthenticationToken;
104104
import org.elasticsearch.xpack.core.security.authc.CrossClusterAccessSubjectInfo;
105+
import org.elasticsearch.xpack.core.security.authc.service.ServiceAccount.ServiceAccountId;
105106
import org.elasticsearch.xpack.core.security.authc.service.ServiceAccountSettings;
107+
import org.elasticsearch.xpack.core.security.authc.service.ServiceAccountToken;
106108
import org.elasticsearch.xpack.core.security.authc.support.mapper.TemplateRoleName;
107109
import org.elasticsearch.xpack.core.security.authc.support.mapper.expressiondsl.ExpressionModel;
108110
import org.elasticsearch.xpack.core.security.authc.support.mapper.expressiondsl.RoleMapperExpression;
@@ -124,8 +126,6 @@
124126
import org.elasticsearch.xpack.security.audit.AuditTrail;
125127
import org.elasticsearch.xpack.security.audit.AuditUtil;
126128
import org.elasticsearch.xpack.security.authc.ApiKeyService;
127-
import org.elasticsearch.xpack.core.security.authc.service.ServiceAccount.ServiceAccountId;
128-
import org.elasticsearch.xpack.core.security.authc.service.ServiceAccountToken;
129129
import org.elasticsearch.xpack.security.rest.RemoteHostHeader;
130130
import org.elasticsearch.xpack.security.support.CacheInvalidatorRegistry;
131131
import org.elasticsearch.xpack.security.support.SecurityIndexManager;

0 commit comments

Comments
 (0)