private volatile RealmAuthenticationProvider realmAuthenticationProvider = null;
public void start(StartContext startContext) throws StartException {
AccessController.doPrivileged(new PrivilegedAction<Object>() {
public Object run() {
Provider saslProvider = new JBossSaslProvider();
if (Security.getProvider(saslProvider.getName()) == null) {
Security.insertProviderAt(saslProvider, 1);
}
return null;
}
});