Skip to content

Commit 7450a83

Browse files
renaming and javadoc
1 parent 3dd666f commit 7450a83

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-5
lines changed

x-pack/plugin/security/src/main/java/org/elasticsearch/xpack/security/transport/CrossClusterAccessTransportInterceptor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ public boolean isRemoteClusterConnection(Transport.Connection connection) {
327327
}
328328

329329
@Override
330-
public Map<String, ServerTransportFilter> getProfileFilters(
330+
public Map<String, ServerTransportFilter> getProfileTransportFilters(
331331
Map<String, SslProfile> profileConfigurations,
332332
DestructiveOperations destructiveOperations
333333
) {

x-pack/plugin/security/src/main/java/org/elasticsearch/xpack/security/transport/RemoteClusterTransportInterceptor.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,16 +27,18 @@ public interface RemoteClusterTransportInterceptor {
2727
TransportInterceptor.AsyncSender interceptSender(TransportInterceptor.AsyncSender sender);
2828

2929
/**
30-
* Returns {@code true} if the {@code connection} is targeting a remote cluster.
30+
* This method returns {@code true} if the {@code connection} is targeting a remote cluster.
3131
*/
3232
boolean isRemoteClusterConnection(Transport.Connection connection);
3333

3434
/**
35-
* Allows providing custom {@link ServerTransportFilter} implementations per transport "profile".
35+
* Allows interceptors to provide a custom {@link ServerTransportFilter} implementations per transport profile.
3636
* The transport filter is called on the receiver side to filter incoming requests
3737
* and execute authentication and authorization for all requests.
38+
*
39+
* @return map of {@link ServerTransportFilter}s per transport profile name
3840
*/
39-
Map<String, ServerTransportFilter> getProfileFilters(
41+
Map<String, ServerTransportFilter> getProfileTransportFilters(
4042
Map<String, SslProfile> profileConfigurations,
4143
DestructiveOperations destructiveOperations
4244
);

x-pack/plugin/security/src/main/java/org/elasticsearch/xpack/security/transport/SecurityServerTransportInterceptor.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,10 @@ public SecurityServerTransportInterceptor(
6363
this.securityContext = securityContext;
6464
this.threadPool = threadPool;
6565
final Map<String, SslProfile> profileConfigurations = ProfileConfigurations.get(settings, sslService, false);
66-
this.profileFilters = this.remoteClusterTransportInterceptor.getProfileFilters(profileConfigurations, destructiveOperations);
66+
this.profileFilters = this.remoteClusterTransportInterceptor.getProfileTransportFilters(
67+
profileConfigurations,
68+
destructiveOperations
69+
);
6770
}
6871

6972
@Override

0 commit comments

Comments
 (0)