this.realmName = realmName;
this.configurationFactory = configurationFactory;
}
public SecurityHandler buildSecurityHandler(String policyContextID, Subject defaultSubject, RunAsSource runAsSource, boolean checkRolePermissions) {
final LoginService loginService = new JAASLoginService(configurationFactory, realmName);
Authenticator authenticator = buildAuthenticator();
if (defaultSubject == null) {
defaultSubject = ContextManager.EMPTY;
}
AccessControlContext defaultAcc = ContextManager.registerSubjectShort(defaultSubject, null, null);