portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vku...@apache.org
Subject svn commit: r693045 - /portals/jetspeed-2/portal/branches/security-refactoring/jetspeed-api/src/main/java/org/apache/jetspeed/security/UserManager.java
Date Mon, 08 Sep 2008 10:23:20 GMT
Author: vkumar
Date: Mon Sep  8 03:23:15 2008
New Revision: 693045

URL: http://svn.apache.org/viewvc?rev=693045&view=rev
Log:
Adding new Method getSubject(User user)

Modified:
    portals/jetspeed-2/portal/branches/security-refactoring/jetspeed-api/src/main/java/org/apache/jetspeed/security/UserManager.java

Modified: portals/jetspeed-2/portal/branches/security-refactoring/jetspeed-api/src/main/java/org/apache/jetspeed/security/UserManager.java
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/portal/branches/security-refactoring/jetspeed-api/src/main/java/org/apache/jetspeed/security/UserManager.java?rev=693045&r1=693044&r2=693045&view=diff
==============================================================================
--- portals/jetspeed-2/portal/branches/security-refactoring/jetspeed-api/src/main/java/org/apache/jetspeed/security/UserManager.java
(original)
+++ portals/jetspeed-2/portal/branches/security-refactoring/jetspeed-api/src/main/java/org/apache/jetspeed/security/UserManager.java
Mon Sep  8 03:23:15 2008
@@ -105,6 +105,25 @@
 
     /**
      * <p>
+     * Get a Subject for an user.
+     * </p>
+     * <p>
+     * The Subject credentials (.e.g. PasswordCredential) will be retrieved
+     * by the Jetspeed security provider itself (if configured).
+     * </p>
+     * <p>
+     * If an external authentication provider is used supplying custom credentials
+     * the method {@link #getSubject(AuthenticatedUser)} should be used instead. 
+     * </p>
+     * 
+     * @param user The user.
+     * @return The Subject.
+     * @throws Throws a security exception if the user cannot be found
+     */
+    Subject getSubject(User user) throws SecurityException;
+
+    /**
+     * <p>
      * Get a Subject for an (possibly externally) authenticated user with (optionally) provided
credentials.
      * </p>
      * 



---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org


Mime
View raw message