directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vte...@apache.org
Subject svn commit: rev 6662 - in incubator/directory/janus/trunk/authentication: . api api/src api/src/java api/src/java/org api/src/java/org/apache api/src/java/org/apache/janus api/src/java/org/apache/janus/authentication
Date Sun, 15 Feb 2004 22:07:27 GMT
Author: vtence
Date: Sun Feb 15 14:07:27 2004
New Revision: 6662

Added:
   incubator/directory/janus/trunk/authentication/
   incubator/directory/janus/trunk/authentication/api/
   incubator/directory/janus/trunk/authentication/api/project.xml
   incubator/directory/janus/trunk/authentication/api/src/
   incubator/directory/janus/trunk/authentication/api/src/java/
   incubator/directory/janus/trunk/authentication/api/src/java/org/
   incubator/directory/janus/trunk/authentication/api/src/java/org/apache/
   incubator/directory/janus/trunk/authentication/api/src/java/org/apache/janus/
   incubator/directory/janus/trunk/authentication/api/src/java/org/apache/janus/Subject.java
   incubator/directory/janus/trunk/authentication/api/src/java/org/apache/janus/authentication/
Log:
Initial import

Added: incubator/directory/janus/trunk/authentication/api/project.xml
==============================================================================
--- (empty file)
+++ incubator/directory/janus/trunk/authentication/api/project.xml	Sun Feb 15 14:07:27 2004
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<project>
+    <extend>${basedir}/../../project.xml</extend>
+
+    <name>Janus Authentication API</name>
+    <id>janus-authentication-api</id>
+    <package>org.apache.janus.authentication</package>
+
+    <shortDescription>Janus Authentication API</shortDescription>
+
+    <description>
+    API for the Janus Security Framework
+    </description>
+
+</project>
\ No newline at end of file

Added: incubator/directory/janus/trunk/authentication/api/src/java/org/apache/janus/Subject.java
==============================================================================
--- (empty file)
+++ incubator/directory/janus/trunk/authentication/api/src/java/org/apache/janus/Subject.java
Sun Feb 15 14:07:27 2004
@@ -0,0 +1,43 @@
+/*
+ *   Copyright 2004 The Apache Software Foundation
+ *
+ *   Licensed under the Apache License, Version 2.0 (the "License");
+ *   you may not use this file except in compliance with the License.
+ *   You may obtain a copy of the License at
+ *
+ *       http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *   Unless required by applicable law or agreed to in writing, software
+ *   distributed under the License is distributed on an "AS IS" BASIS,
+ *   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *   See the License for the specific language governing permissions and
+ *   limitations under the License.
+ *
+ */
+package org.apache.janus;
+
+import java.util.Set;
+
+/**
+ * <p> A <code>Subject</code> represents a grouping of related information
+ * for a single entity, such as a person.
+ * <p/>
+ * Subjects may potentially have multiple identities.
+ * Each identity is represented as a Principal within the Subject.
+ *
+ * @author <a href="mailto:directory-dev@incubator.apache.org">Apache Directory Project</a>
+ */
+public interface Subject
+{
+    /**
+     * Return the Set of Principals associated with this Subject.
+     */
+    Set getPrincipals();
+
+    /**
+     * Return a Set of Principals associated with this Subject that
+     * are instances or subclasses of the specified Class.
+     */
+    Set getPrincipals( Class c );
+}
+

Mime
View raw message