public void updateGrants (final java.util.Map grants) { checkAccess(); this.passwd.updateGrants(grants); }
public java.util.Map getGrants () { checkAccess(); return this.passwd.getGrants(); }
public java.util.List getPrincipals () { checkAccess(); return this.passwd.getPrincipals(); }
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 savePasswd () throws AuthException { checkAccess(); this.passwdCodec.encodePasswd(this.passwd); }
public void updatePrincipals (final java.util.List principals) { checkAccess(); this.passwd.updatePrincipals(principals); }
/** * returns a clone of this Principal without the authentification * credentials (auth has just been done, and the returned principal * is meant to be stored in a Subject) */ public Principal getWorkCopy (final String principalName) { final BasicPrincipal bp = new BasicPrincipal(); fill(bp); bp.hashedPassword = null; bp.owfePrincipalName = principalName; return bp; }
public boolean implies (final java.security.Permission p) { if (p == null || ! (p instanceof UmanPermission)) return false; final java.util.Enumeration en = elements(); while(en.hasMoreElements()) { UmanPermission elp = (UmanPermission)en.nextElement(); //log.debug("does "+elp+" implies "+p+" ?"); if (elp.implies(p)) return true; } return false; }
public boolean implies (java.security.Permission p) { if (p == null || ! (p instanceof ServicePermission)) return false; ServicePermission other = (ServicePermission)p; java.util.Enumeration en = elements(); while(en.hasMoreElements()) { ServicePermission sp = (ServicePermission)en.nextElement(); //log.debug("does "+sp+" implies "+p+" ?"); if (sp.implies(other)) return true; } return false; }
public String toString () { StringBuffer sb = new StringBuffer(); sb.append("<ServicePermission name=\""); sb.append(getName()); sb.append("\" actions=\""); sb.append(actionListToString()); sb.append("\" />"); return sb.toString(); }
public synchronized void updatePrincipals (final java.util.List principals) { this.principalList = principals; buildPrincipalMap(); }
public PermissionCollection getPermissions (Subject subject) throws AuthException { return this.passwd.getPermissions(subject); }
public boolean isRunning () { return getState() instanceof RunningState; }
public PermissionCollection newPermissionCollection () { return new ServicePermissionCollection(); }
public String getActions () { return actionListToString(); }
public PermissionCollection newPermissionCollection () { return new UmanPermissionCollection(); }
public void update () throws ServiceException { log.info("update() requested for service '"+getName()+"'"); // nothing to do... }
public void addPermission (Permission p) { this.permissionMap.put(computeKey(p), p); //log.debug("addPermission() added key "+computeKey(p)+" --> "+p); }
public Passwd (final String name, final java.util.List principalList, final java.util.Map grantMap) { this.name = name; this.principalList = principalList; this.grantMap = grantMap; buildPrincipalMap(); }