Ensure CryptoService is not null for node only services

Original commit: elastic/x-pack-elasticsearch@b17e3620b5
This commit is contained in:
Ryan Ernst 2016-07-11 08:38:12 -07:00
parent 6bcf79dd6c
commit b862db93d0
2 changed files with 2 additions and 2 deletions

View File

@ -60,7 +60,7 @@ public class SecurityActionFilter extends AbstractComponent implements ActionFil
@Inject
public SecurityActionFilter(Settings settings, AuthenticationService authcService, AuthorizationService authzService,
@Nullable CryptoService cryptoService, AuditTrail auditTrail, SecurityLicenseState licenseState,
CryptoService cryptoService, AuditTrail auditTrail, SecurityLicenseState licenseState,
SecurityActionMapper actionMapper, Set<RequestInterceptor> requestInterceptors, ThreadPool threadPool,
SecurityContext securityContext) {
super(settings);

View File

@ -53,7 +53,7 @@ public class InternalAuthenticationService extends AbstractComponent implements
private final boolean runAsEnabled;
@Inject
public InternalAuthenticationService(Settings settings, Realms realms, AuditTrail auditTrail, @Nullable CryptoService cryptoService,
public InternalAuthenticationService(Settings settings, Realms realms, AuditTrail auditTrail, CryptoService cryptoService,
AuthenticationFailureHandler failureHandler, ThreadPool threadPool, RestController controller) {
super(settings);
this.nodeName = Node.NODE_NAME_SETTING.get(settings);