You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-dev@portals.apache.org by ta...@apache.org on 2006/02/16 06:52:51 UTC

svn commit: r378179 - /portals/jetspeed-2/trunk/components/security/src/java/org/apache/jetspeed/security/impl/UserSubjectPrincipalImpl.java

Author: taylor
Date: Wed Feb 15 21:52:50 2006
New Revision: 378179

URL: http://svn.apache.org/viewcvs?rev=378179&view=rev
Log:
support for authentication via non-container managed authentication
i know i know, bring it on, but i needed something for WAS and this works
still need to iron out a few issues
* need to logout/login after changing PW
* security features are no longer enabled such 3 strikes and other login pipeline features


Added:
    portals/jetspeed-2/trunk/components/security/src/java/org/apache/jetspeed/security/impl/UserSubjectPrincipalImpl.java

Added: portals/jetspeed-2/trunk/components/security/src/java/org/apache/jetspeed/security/impl/UserSubjectPrincipalImpl.java
URL: http://svn.apache.org/viewcvs/portals/jetspeed-2/trunk/components/security/src/java/org/apache/jetspeed/security/impl/UserSubjectPrincipalImpl.java?rev=378179&view=auto
==============================================================================
--- portals/jetspeed-2/trunk/components/security/src/java/org/apache/jetspeed/security/impl/UserSubjectPrincipalImpl.java (added)
+++ portals/jetspeed-2/trunk/components/security/src/java/org/apache/jetspeed/security/impl/UserSubjectPrincipalImpl.java Wed Feb 15 21:52:50 2006
@@ -0,0 +1,50 @@
+/* Copyright 2004 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.jetspeed.security.impl;
+
+import javax.security.auth.Subject;
+
+import org.apache.jetspeed.security.UserPrincipal;
+import org.apache.jetspeed.security.UserSubjectPrincipal;
+
+/**
+ * <p>{@link UserPrincipal} interface implementation.</p>
+ * @author <a href="mailto:taylor@apache.org">David Sean Taylor</a>
+ * @version $Id: UserPrincipalImpl.java 331065 2005-11-06 03:40:32Z dlestrat $
+ */
+public class UserSubjectPrincipalImpl extends UserPrincipalImpl implements UserSubjectPrincipal
+{
+
+    /** The serial version uid. */
+    private static final long serialVersionUID = 4134905654850335230L;
+    protected Subject subject;
+
+    /**
+     * <p>The user principal constructor.</p>
+     * @param userName The user principal name.
+     */
+    public UserSubjectPrincipalImpl(String userName, Subject subject)
+    {
+        super(userName);   
+        this.subject = subject;
+    }
+
+    
+    public Subject getSubject()
+    {
+        return subject;
+    }
+
+}



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