public java.util.List getPrincipals () { checkAccess(); return this.passwd.getPrincipals(); }
public boolean isRunning () { return getState() instanceof RunningState; }
PolicyService.lookupPolicyService(this.applicationContext); policy.refresh(); try permissions = policy.getPermissions(this.subject);
this.policyService = PolicyService.lookupPolicyService(context);
public Principal authentify (final String userName, final Object credentials) throws AuthException { if (this.refreshEachTime) this.refresh(); //this.refresh(); return this.passwd.authentify(userName, credentials); }
public void update () throws ServiceException { log.info("update() requested for service '"+getName()+"'"); // nothing to do... }
public void refresh () { log.info("refresh() '"+this.serviceName+"'"); try { loadPasswd(); } catch (final ServiceException se) { //log.warn("Passwd reload failed", se); } this.deferredPolicy.refresh(); }
try this.principal = this.policyService.authentify(userName, pass);
public static PolicyService lookupPolicyService (final ApplicationContext context) { //log.debug // ("lookupPolicyService() in context '"+ // context.getApplicationName()+"'"); final PolicyService ps = (PolicyService)context.lookup(POLICY_SERVICE); if (ps != null) return ps; if (context.getParentContext() == null) return null; return lookupPolicyService(context.getParentContext()); }
public org.jdom.Element getStatus () { return new org.jdom.Element(getName()); }
try this.principal = this.policyService.authentify(userName, pass);
public void updatePrincipals (final java.util.List principals) { checkAccess(); this.passwd.updatePrincipals(principals); }
public void stop () throws ServiceException { log.info("stop() requested for service '"+getName()+"'"); this.serviceState = new StoppedState(); }
public void updateGrants (final java.util.Map grants) { checkAccess(); this.passwd.updateGrants(grants); }
public void savePasswd () throws AuthException { checkAccess(); this.passwdCodec.encodePasswd(this.passwd); }
public java.util.Map getGrants () { checkAccess(); return this.passwd.getGrants(); }