props.put(Constants.PROVIDED_CLASSES_KEY, Password.class.getName());
props.put(Constants.DELEGATION_CONTEXT_KEY, org.openengsb.core.api.Constants.DELEGATION_CONTEXT_CREDENTIALS);
registerService(new ClassProviderImpl(bundle, Sets.newHashSet(Password.class.getName())), props,
ClassProvider.class);
DefaultSecurityManager securityManager = new DefaultSecurityManager();
securityManager.setAuthenticator(new Authenticator() {
@Override
public AuthenticationInfo authenticate(AuthenticationToken authenticationToken)
throws org.apache.shiro.authc.AuthenticationException {
return new SimpleAuthenticationInfo(authenticationToken.getPrincipal(), authenticationToken
.getCredentials(), "openengsb");