Skip to content

Commit 1e110c9

Browse files
committed
Remove unused User class from protocol (#33137)
This commit removes the unused User class from the protocol project. This class was originally moved into protocol in preparation for moving more request and response classes, but given the change in direction for the HLRC this is no longer needed. Additionally, this change also changes the package name for the User object in x-pack/plugin/core to its original name.
1 parent a4f71ef commit 1e110c9

File tree

107 files changed

+96
-429
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

107 files changed

+96
-429
lines changed

x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/SecurityContext.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
import org.elasticsearch.common.util.concurrent.ThreadContext.StoredContext;
1414
import org.elasticsearch.node.Node;
1515
import org.elasticsearch.xpack.core.security.authc.Authentication;
16-
import org.elasticsearch.protocol.xpack.security.User;
16+
import org.elasticsearch.xpack.core.security.user.User;
1717

1818
import java.io.IOException;
1919
import java.util.Objects;

x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/UserSettings.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
import org.elasticsearch.common.settings.Settings;
1111
import org.elasticsearch.common.util.concurrent.ThreadContext;
1212
import org.elasticsearch.xpack.core.security.authc.Authentication;
13-
import org.elasticsearch.protocol.xpack.security.User;
13+
import org.elasticsearch.xpack.core.security.user.User;
1414

1515
import java.io.IOException;
1616

x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/user/AuthenticateResponse.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
import org.elasticsearch.action.ActionResponse;
99
import org.elasticsearch.common.io.stream.StreamInput;
1010
import org.elasticsearch.common.io.stream.StreamOutput;
11-
import org.elasticsearch.protocol.xpack.security.User;
11+
import org.elasticsearch.xpack.core.security.user.User;
1212

1313
import java.io.IOException;
1414

x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/user/ChangePasswordRequestBuilder.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
import org.elasticsearch.common.xcontent.XContentType;
1919
import org.elasticsearch.xpack.core.security.authc.support.Hasher;
2020
import org.elasticsearch.xpack.core.security.support.Validation;
21-
import org.elasticsearch.protocol.xpack.security.User;
21+
import org.elasticsearch.xpack.core.security.user.User;
2222
import org.elasticsearch.xpack.core.security.xcontent.XContentUtils;
2323

2424
import java.io.IOException;

x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/user/GetUsersResponse.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
import org.elasticsearch.action.ActionResponse;
99
import org.elasticsearch.common.io.stream.StreamInput;
1010
import org.elasticsearch.common.io.stream.StreamOutput;
11-
import org.elasticsearch.protocol.xpack.security.User;
11+
import org.elasticsearch.xpack.core.security.user.User;
1212

1313
import java.io.IOException;
1414
import java.util.Collection;

x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/action/user/PutUserRequestBuilder.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
import org.elasticsearch.common.xcontent.XContentType;
2121
import org.elasticsearch.xpack.core.security.authc.support.Hasher;
2222
import org.elasticsearch.xpack.core.security.support.Validation;
23-
import org.elasticsearch.protocol.xpack.security.User;
23+
import org.elasticsearch.xpack.core.security.user.User;
2424
import org.elasticsearch.xpack.core.security.xcontent.XContentUtils;
2525

2626
import java.io.IOException;

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
import org.elasticsearch.common.io.stream.StreamOutput;
1313
import org.elasticsearch.common.util.concurrent.ThreadContext;
1414
import org.elasticsearch.xpack.core.security.user.InternalUserSerializationHelper;
15-
import org.elasticsearch.protocol.xpack.security.User;
15+
import org.elasticsearch.xpack.core.security.user.User;
1616

1717
import java.io.IOException;
1818
import java.util.Base64;

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
package org.elasticsearch.xpack.core.security.authc;
77

88
import org.elasticsearch.common.Nullable;
9-
import org.elasticsearch.protocol.xpack.security.User;
9+
import org.elasticsearch.xpack.core.security.user.User;
1010

1111
import java.util.Objects;
1212

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
import org.elasticsearch.action.ActionListener;
1010
import org.elasticsearch.common.util.concurrent.ThreadContext;
1111
import org.elasticsearch.xpack.core.XPackField;
12-
import org.elasticsearch.protocol.xpack.security.User;
12+
import org.elasticsearch.xpack.core.security.user.User;
1313

1414
import java.util.Collections;
1515
import java.util.HashMap;

x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/authz/accesscontrol/SecurityIndexSearcherWrapper.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
import org.elasticsearch.xpack.core.security.authz.AuthorizationServiceField;
6464
import org.elasticsearch.xpack.core.security.authz.accesscontrol.DocumentSubsetReader.DocumentSubsetDirectoryReader;
6565
import org.elasticsearch.xpack.core.security.support.Exceptions;
66-
import org.elasticsearch.protocol.xpack.security.User;
66+
import org.elasticsearch.xpack.core.security.user.User;
6767

6868
import java.io.IOException;
6969
import java.util.ArrayList;

x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/user/APMSystemUser.java

-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
package org.elasticsearch.xpack.core.security.user;
77

88
import org.elasticsearch.Version;
9-
import org.elasticsearch.protocol.xpack.security.User;
109
import org.elasticsearch.xpack.core.security.support.MetadataUtils;
1110

1211
/**

x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/user/AnonymousUser.java

-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
import org.elasticsearch.common.settings.Setting;
1010
import org.elasticsearch.common.settings.Setting.Property;
1111
import org.elasticsearch.common.settings.Settings;
12-
import org.elasticsearch.protocol.xpack.security.User;
1312
import org.elasticsearch.xpack.core.security.support.MetadataUtils;
1413

1514
import java.util.Collections;

x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/user/BeatsSystemUser.java

-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
package org.elasticsearch.xpack.core.security.user;
77

88
import org.elasticsearch.Version;
9-
import org.elasticsearch.protocol.xpack.security.User;
109
import org.elasticsearch.xpack.core.security.support.MetadataUtils;
1110

1211
/**

x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/user/ElasticUser.java

-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
*/
66
package org.elasticsearch.xpack.core.security.user;
77

8-
import org.elasticsearch.protocol.xpack.security.User;
98
import org.elasticsearch.xpack.core.security.support.MetadataUtils;
109

1110

x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/user/InternalUserSerializationHelper.java

-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
import org.elasticsearch.Version;
99
import org.elasticsearch.common.io.stream.StreamInput;
1010
import org.elasticsearch.common.io.stream.StreamOutput;
11-
import org.elasticsearch.protocol.xpack.security.User;
1211

1312
import java.io.IOException;
1413

x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/user/KibanaUser.java

-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
*/
66
package org.elasticsearch.xpack.core.security.user;
77

8-
import org.elasticsearch.protocol.xpack.security.User;
98
import org.elasticsearch.xpack.core.security.support.MetadataUtils;
109

1110
/**

x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/user/LogstashSystemUser.java

-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
package org.elasticsearch.xpack.core.security.user;
77

88
import org.elasticsearch.Version;
9-
import org.elasticsearch.protocol.xpack.security.User;
109
import org.elasticsearch.xpack.core.security.support.MetadataUtils;
1110

1211
/**

x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/user/SystemUser.java

-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
*/
66
package org.elasticsearch.xpack.core.security.user;
77

8-
import org.elasticsearch.protocol.xpack.security.User;
98
import org.elasticsearch.xpack.core.security.authz.privilege.SystemPrivilege;
109

1110
import java.util.function.Predicate;

x-pack/plugin/core/src/main/java/org/elasticsearch/protocol/xpack/security/User.java renamed to x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/user/User.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* or more contributor license agreements. Licensed under the Elastic License;
44
* you may not use this file except in compliance with the Elastic License.
55
*/
6-
package org.elasticsearch.protocol.xpack.security;
6+
package org.elasticsearch.xpack.core.security.user;
77

88
import org.elasticsearch.Version;
99
import org.elasticsearch.common.Nullable;

x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/user/XPackSecurityUser.java

-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55
*/
66
package org.elasticsearch.xpack.core.security.user;
77

8-
import org.elasticsearch.protocol.xpack.security.User;
9-
108
/**
119
* internal user that manages xpack security. Has all cluster/indices permissions.
1210
*/

x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/security/user/XPackUser.java

-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
*/
66
package org.elasticsearch.xpack.core.security.user;
77

8-
import org.elasticsearch.protocol.xpack.security.User;
98
import org.elasticsearch.xpack.core.security.authz.RoleDescriptor;
109
import org.elasticsearch.xpack.core.security.authz.permission.Role;
1110
import org.elasticsearch.xpack.core.security.index.IndexAuditTrailField;

x-pack/plugin/core/src/test/java/org/elasticsearch/xpack/core/security/authz/accesscontrol/SecurityIndexSearcherWrapperUnitTests.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878
import org.elasticsearch.xpack.core.security.authz.accesscontrol.DocumentSubsetReader.DocumentSubsetDirectoryReader;
7979
import org.elasticsearch.xpack.core.security.authz.permission.FieldPermissions;
8080
import org.elasticsearch.xpack.core.security.authz.permission.FieldPermissionsDefinition;
81-
import org.elasticsearch.protocol.xpack.security.User;
81+
import org.elasticsearch.xpack.core.security.user.User;
8282
import org.junit.After;
8383
import org.junit.Before;
8484
import org.mockito.ArgumentCaptor;

x-pack/plugin/core/src/test/java/org/elasticsearch/protocol/xpack/security/UserTests.java renamed to x-pack/plugin/core/src/test/java/org/elasticsearch/xpack/core/security/user/UserTests.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,10 @@
33
* or more contributor license agreements. Licensed under the Elastic License;
44
* you may not use this file except in compliance with the Elastic License.
55
*/
6-
package org.elasticsearch.protocol.xpack.security;
6+
package org.elasticsearch.xpack.core.security.user;
77

88
import org.elasticsearch.test.ESTestCase;
9+
import org.elasticsearch.xpack.core.security.user.User;
910

1011
import java.util.Collections;
1112

x-pack/plugin/security/src/main/java/org/elasticsearch/xpack/security/action/saml/TransportSamlLogoutAction.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
import org.elasticsearch.xpack.core.security.action.saml.SamlLogoutResponse;
2121
import org.elasticsearch.xpack.core.security.authc.Authentication;
2222
import org.elasticsearch.xpack.core.security.authc.Realm;
23-
import org.elasticsearch.protocol.xpack.security.User;
23+
import org.elasticsearch.xpack.core.security.user.User;
2424
import org.elasticsearch.xpack.security.authc.Realms;
2525
import org.elasticsearch.xpack.security.authc.TokenService;
2626
import org.elasticsearch.xpack.security.authc.saml.SamlNameId;

x-pack/plugin/security/src/main/java/org/elasticsearch/xpack/security/action/user/TransportAuthenticateAction.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
import org.elasticsearch.xpack.core.security.action.user.AuthenticateRequest;
2020
import org.elasticsearch.xpack.core.security.action.user.AuthenticateResponse;
2121
import org.elasticsearch.xpack.core.security.user.SystemUser;
22-
import org.elasticsearch.protocol.xpack.security.User;
22+
import org.elasticsearch.xpack.core.security.user.User;
2323
import org.elasticsearch.xpack.core.security.user.XPackUser;
2424

2525
public class TransportAuthenticateAction extends HandledTransportAction<AuthenticateRequest, AuthenticateResponse> {

x-pack/plugin/security/src/main/java/org/elasticsearch/xpack/security/action/user/TransportGetUsersAction.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
import org.elasticsearch.xpack.core.security.action.user.GetUsersResponse;
2020
import org.elasticsearch.xpack.core.security.authc.esnative.ClientReservedRealm;
2121
import org.elasticsearch.xpack.core.security.user.SystemUser;
22-
import org.elasticsearch.protocol.xpack.security.User;
22+
import org.elasticsearch.xpack.core.security.user.User;
2323
import org.elasticsearch.xpack.core.security.user.XPackUser;
2424
import org.elasticsearch.xpack.security.authc.esnative.NativeUsersStore;
2525
import org.elasticsearch.xpack.security.authc.esnative.ReservedRealm;

x-pack/plugin/security/src/main/java/org/elasticsearch/xpack/security/action/user/TransportHasPrivilegesAction.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
import org.elasticsearch.xpack.core.security.authz.privilege.IndexPrivilege;
3131
import org.elasticsearch.xpack.core.security.authz.privilege.Privilege;
3232
import org.elasticsearch.xpack.core.security.support.Automatons;
33-
import org.elasticsearch.protocol.xpack.security.User;
33+
import org.elasticsearch.xpack.core.security.user.User;
3434
import org.elasticsearch.xpack.security.authz.AuthorizationService;
3535
import org.elasticsearch.xpack.security.authz.store.NativePrivilegeStore;
3636

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
import org.elasticsearch.transport.TransportMessage;
1010
import org.elasticsearch.xpack.core.security.authc.Authentication;
1111
import org.elasticsearch.xpack.core.security.authc.AuthenticationToken;
12-
import org.elasticsearch.protocol.xpack.security.User;
12+
import org.elasticsearch.xpack.core.security.user.User;
1313
import org.elasticsearch.xpack.security.transport.filter.SecurityIpFilterRule;
1414

1515
import java.net.InetAddress;

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
import org.elasticsearch.transport.TransportMessage;
1313
import org.elasticsearch.xpack.core.security.authc.Authentication;
1414
import org.elasticsearch.xpack.core.security.authc.AuthenticationToken;
15-
import org.elasticsearch.protocol.xpack.security.User;
15+
import org.elasticsearch.xpack.core.security.user.User;
1616
import org.elasticsearch.xpack.security.transport.filter.SecurityIpFilterRule;
1717

1818
import java.net.InetAddress;

x-pack/plugin/security/src/main/java/org/elasticsearch/xpack/security/audit/index/IndexAuditTrail.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
import org.elasticsearch.xpack.core.security.authc.AuthenticationToken;
5656
import org.elasticsearch.xpack.core.security.index.IndexAuditTrailField;
5757
import org.elasticsearch.xpack.core.security.user.SystemUser;
58-
import org.elasticsearch.protocol.xpack.security.User;
58+
import org.elasticsearch.xpack.core.security.user.User;
5959
import org.elasticsearch.xpack.core.security.user.XPackUser;
6060
import org.elasticsearch.xpack.core.template.TemplateUtils;
6161
import org.elasticsearch.xpack.security.audit.AuditLevel;

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
import org.elasticsearch.xpack.core.security.authc.AuthenticationToken;
3131
import org.elasticsearch.xpack.core.security.support.Automatons;
3232
import org.elasticsearch.xpack.core.security.user.SystemUser;
33-
import org.elasticsearch.protocol.xpack.security.User;
33+
import org.elasticsearch.xpack.core.security.user.User;
3434
import org.elasticsearch.xpack.core.security.user.XPackUser;
3535
import org.elasticsearch.xpack.security.audit.AuditLevel;
3636
import org.elasticsearch.xpack.security.audit.AuditTrail;

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
import org.elasticsearch.xpack.core.security.support.Exceptions;
3232
import org.elasticsearch.xpack.core.security.user.AnonymousUser;
3333
import org.elasticsearch.xpack.core.security.user.SystemUser;
34-
import org.elasticsearch.protocol.xpack.security.User;
34+
import org.elasticsearch.xpack.core.security.user.User;
3535
import org.elasticsearch.xpack.security.audit.AuditTrail;
3636
import org.elasticsearch.xpack.security.audit.AuditTrailService;
3737

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
import org.elasticsearch.xpack.core.security.authc.RealmConfig;
1212
import org.elasticsearch.xpack.core.security.authc.esnative.NativeRealmSettings;
1313
import org.elasticsearch.xpack.core.security.authc.support.UsernamePasswordToken;
14-
import org.elasticsearch.protocol.xpack.security.User;
14+
import org.elasticsearch.xpack.core.security.user.User;
1515
import org.elasticsearch.xpack.security.authc.support.CachingUsernamePasswordRealm;
1616
import org.elasticsearch.xpack.security.support.SecurityIndexManager;
1717

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@
5050
import org.elasticsearch.xpack.core.security.authc.support.Hasher;
5151
import org.elasticsearch.xpack.core.security.client.SecurityClient;
5252
import org.elasticsearch.xpack.core.security.user.SystemUser;
53-
import org.elasticsearch.protocol.xpack.security.User;
54-
import org.elasticsearch.protocol.xpack.security.User.Fields;
53+
import org.elasticsearch.xpack.core.security.user.User;
54+
import org.elasticsearch.xpack.core.security.user.User.Fields;
5555
import org.elasticsearch.xpack.core.security.user.XPackUser;
5656
import org.elasticsearch.xpack.security.support.SecurityIndexManager;
5757

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
import org.elasticsearch.xpack.core.security.user.ElasticUser;
3131
import org.elasticsearch.xpack.core.security.user.KibanaUser;
3232
import org.elasticsearch.xpack.core.security.user.LogstashSystemUser;
33-
import org.elasticsearch.protocol.xpack.security.User;
33+
import org.elasticsearch.xpack.core.security.user.User;
3434
import org.elasticsearch.xpack.security.authc.esnative.NativeUsersStore.ReservedUserInfo;
3535
import org.elasticsearch.xpack.security.authc.support.CachingUsernamePasswordRealm;
3636
import org.elasticsearch.xpack.security.support.SecurityIndexManager;

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
import org.elasticsearch.common.settings.SecureString;
99
import org.elasticsearch.xpack.core.security.authc.support.Hasher;
10-
import org.elasticsearch.protocol.xpack.security.User;
10+
import org.elasticsearch.xpack.core.security.user.User;
1111

1212
/**
1313
* Like User, but includes the hashed password

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
import org.elasticsearch.xpack.core.security.authc.RealmConfig;
1313
import org.elasticsearch.xpack.core.security.authc.file.FileRealmSettings;
1414
import org.elasticsearch.xpack.core.security.authc.support.UsernamePasswordToken;
15-
import org.elasticsearch.protocol.xpack.security.User;
15+
import org.elasticsearch.xpack.core.security.user.User;
1616
import org.elasticsearch.xpack.security.authc.support.CachingUsernamePasswordRealm;
1717

1818
import java.util.Map;

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
import org.elasticsearch.xpack.core.security.support.NoOpLogger;
2525
import org.elasticsearch.xpack.core.security.support.Validation;
2626
import org.elasticsearch.xpack.core.security.support.Validation.Users;
27-
import org.elasticsearch.protocol.xpack.security.User;
27+
import org.elasticsearch.xpack.core.security.user.User;
2828
import org.elasticsearch.xpack.security.support.SecurityFiles;
2929

3030
import java.io.IOException;

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
import org.elasticsearch.xpack.core.security.authc.RealmConfig;
2121
import org.elasticsearch.xpack.core.security.authc.kerberos.KerberosRealmSettings;
2222
import org.elasticsearch.xpack.core.security.authc.support.CachingRealm;
23-
import org.elasticsearch.protocol.xpack.security.User;
23+
import org.elasticsearch.xpack.core.security.user.User;
2424
import org.elasticsearch.xpack.security.authc.support.UserRoleMapper;
2525
import org.elasticsearch.xpack.security.authc.support.mapper.NativeRoleMappingStore;
2626
import org.ietf.jgss.GSSException;

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
import org.elasticsearch.xpack.core.security.authc.ldap.LdapRealmSettings;
2626
import org.elasticsearch.xpack.core.security.authc.ldap.LdapSessionFactorySettings;
2727
import org.elasticsearch.xpack.core.security.authc.support.UsernamePasswordToken;
28-
import org.elasticsearch.protocol.xpack.security.User;
28+
import org.elasticsearch.xpack.core.security.user.User;
2929
import org.elasticsearch.xpack.core.ssl.SSLService;
3030
import org.elasticsearch.xpack.security.authc.ldap.support.LdapLoadBalancing;
3131
import org.elasticsearch.xpack.security.authc.ldap.support.LdapSession;

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
import org.elasticsearch.xpack.core.security.authc.RealmSettings;
2828
import org.elasticsearch.xpack.core.security.authc.pki.PkiRealmSettings;
2929
import org.elasticsearch.xpack.core.security.authc.support.CachingRealm;
30-
import org.elasticsearch.protocol.xpack.security.User;
30+
import org.elasticsearch.xpack.core.security.user.User;
3131
import org.elasticsearch.xpack.core.ssl.CertParsingUtils;
3232
import org.elasticsearch.xpack.core.ssl.SSLConfigurationSettings;
3333
import org.elasticsearch.xpack.security.authc.BytesKey;

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
import org.elasticsearch.xpack.core.security.authc.RealmConfig;
4444
import org.elasticsearch.xpack.core.security.authc.RealmSettings;
4545
import org.elasticsearch.xpack.core.security.authc.saml.SamlRealmSettings;
46-
import org.elasticsearch.protocol.xpack.security.User;
46+
import org.elasticsearch.xpack.core.security.user.User;
4747
import org.elasticsearch.xpack.core.ssl.SSLConfiguration;
4848
import org.elasticsearch.xpack.core.ssl.CertParsingUtils;
4949
import org.elasticsearch.xpack.core.ssl.SSLService;

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
import org.elasticsearch.xpack.core.security.authc.support.CachingUsernamePasswordRealmSettings;
2020
import org.elasticsearch.xpack.core.security.authc.support.Hasher;
2121
import org.elasticsearch.xpack.core.security.authc.support.UsernamePasswordToken;
22-
import org.elasticsearch.protocol.xpack.security.User;
22+
import org.elasticsearch.xpack.core.security.user.User;
2323

2424
import java.util.Collections;
2525
import java.util.Map;

x-pack/plugin/security/src/main/java/org/elasticsearch/xpack/security/authz/AuthorizationService.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
import org.elasticsearch.xpack.core.security.support.Automatons;
5858
import org.elasticsearch.xpack.core.security.user.AnonymousUser;
5959
import org.elasticsearch.xpack.core.security.user.SystemUser;
60-
import org.elasticsearch.protocol.xpack.security.User;
60+
import org.elasticsearch.xpack.core.security.user.User;
6161
import org.elasticsearch.xpack.core.security.user.XPackSecurityUser;
6262
import org.elasticsearch.xpack.core.security.user.XPackUser;
6363
import org.elasticsearch.xpack.security.audit.AuditTrailService;

0 commit comments

Comments
 (0)