[jboss-cvs] JBossAS SVN: r73216 - in projects/security/security-spi/trunk: spi/src/main/org/jboss/security and 1 other directory.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Fri May 9 12:09:54 EDT 2008


Author: anil.saldhana at jboss.com
Date: 2008-05-09 12:09:54 -0400 (Fri, 09 May 2008)
New Revision: 73216

Modified:
   projects/security/security-spi/trunk/pom.xml
   projects/security/security-spi/trunk/spi/src/main/org/jboss/security/AuthenticationManager.java
Log:
SECURITY-217: auth mgr interface has a jaspi method taking in a callbackHandler

Modified: projects/security/security-spi/trunk/pom.xml
===================================================================
--- projects/security/security-spi/trunk/pom.xml	2008-05-09 16:09:18 UTC (rev 73215)
+++ projects/security/security-spi/trunk/pom.xml	2008-05-09 16:09:54 UTC (rev 73216)
@@ -9,7 +9,6 @@
    <groupId>org.jboss.security</groupId>
    <artifactId>jboss-security-spi</artifactId>
    <packaging>pom</packaging>
-   <version>2.0.2-SNAPSHOT</version>
    <name>JBoss Security SPI - Aggregator</name>
    <url>http://labs.jboss.org/portal/jbosssecurity/</url>
    <description>JBoss Security is a cross cutting project that handles security for the JEMS projects</description>

Modified: projects/security/security-spi/trunk/spi/src/main/org/jboss/security/AuthenticationManager.java
===================================================================
--- projects/security/security-spi/trunk/spi/src/main/org/jboss/security/AuthenticationManager.java	2008-05-09 16:09:18 UTC (rev 73215)
+++ projects/security/security-spi/trunk/spi/src/main/org/jboss/security/AuthenticationManager.java	2008-05-09 16:09:54 UTC (rev 73216)
@@ -25,6 +25,7 @@
 import java.util.Map;
 
 import javax.security.auth.Subject;
+import javax.security.auth.callback.CallbackHandler;
 import javax.security.auth.message.MessageInfo;
 
 /** The AuthenticationManager is responsible for validating credentials
@@ -73,9 +74,21 @@
     * @param clientSubject Pre-created or null subject
     * @param layer Message Layer for the JASPI (Optional):  Default: HTTP
     * @return true if client subject is valid, false otherwise
+    * @deprecated
     */
    boolean isValid(MessageInfo requestMessage, Subject clientSubject, String layer);
-
+   
+   /**
+    * Authenticate a Subject given the request response JSR-196(JASPI) messages
+    * @param requestMessage 
+    * @param clientSubject Pre-created or null subject
+    * @param layer Message Layer for the JASPI (Optional):  Default: HTTP
+    * @param callbackHandler CallbackHandler
+    * @return true if client subject is valid, false otherwise
+    */
+   boolean isValid(MessageInfo requestMessage, Subject clientSubject, String layer,
+         CallbackHandler callbackHandler);
+   
    /** Get the currently authenticated subject. Historically implementations of
     AuthenticationManager isValid methods had the side-effect of setting the
     active Subject. This caused problems with multi-threaded usecases where the




More information about the jboss-cvs-commits mailing list