Permalink
Browse files

[javadoc] Added licence header and some detail on intention of the class

  • Loading branch information...
1 parent df96ea2 commit 7c3a0a9b7d43a8441d17820ffea3c187509c443b @adamretter adamretter committed Nov 14, 2013
Showing with 29 additions and 0 deletions.
  1. +29 −0 src/org/exist/security/EffectiveSubject.java
View
29 src/org/exist/security/EffectiveSubject.java
@@ -1,3 +1,24 @@
+/*
+ * eXist Open Source Native XML Database
+ * Copyright (C) 2013 The eXist-db Project
+ * http://exist-db.org
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+ *
+ * $Id$
+ */
package org.exist.security;
import java.util.Set;
@@ -6,6 +27,14 @@
import org.exist.security.realm.Realm;
import org.exist.storage.DBBroker;
+/**
+ * Represents an Effective User
+ *
+ * This is used during setUid and setGid operations
+ * to replace the Subject used by DBBroker
+ * with a subject which is potentially a composite
+ * of a user and/or group
+ */
public class EffectiveSubject implements Subject {
private final Account account;

0 comments on commit 7c3a0a9

Please sign in to comment.