taylor      02/05/24 20:02:22

  Modified:    src/java/org/apache/jetspeed/services/security Tag:
                        security_14 LoginException.java
                        PortalAuthentication.java
  Added:       src/java/org/apache/jetspeed/services/security Tag:
                        security_14 AuthorizationException.java
                        CredentialExpiredException.java
                        InsufficientPrivilegeException.java
                        JetspeedSecurityException.java
                        NotUniqueUserException.java
                        UnknownUserException.java UserManagement.java
  Log:
  UserManagement interface and exceptions
  see http://www.bluesunrise.com/jetspeed-docs/security/package-summary.html
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.1.2.2   +2 -2      
jakarta-jetspeed/src/java/org/apache/jetspeed/services/security/Attic/LoginException.java
  
  Index: LoginException.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-jetspeed/src/java/org/apache/jetspeed/services/security/Attic/LoginException.java,v
  retrieving revision 1.1.2.1
  retrieving revision 1.1.2.2
  diff -u -r1.1.2.1 -r1.1.2.2
  --- LoginException.java       24 May 2002 18:31:02 -0000      1.1.2.1
  +++ LoginException.java       25 May 2002 03:02:22 -0000      1.1.2.2
  @@ -58,10 +58,10 @@
    * This is the basic login exception. It is the same as LoginException in JAAS
    *
    * @author <a href="mailto:[EMAIL PROTECTED]";>David Sean Taylor</a>
  - * @version $Id: LoginException.java,v 1.1.2.1 2002/05/24 18:31:02 taylor Exp $
  + * @version $Id: LoginException.java,v 1.1.2.2 2002/05/25 03:02:22 taylor Exp $
    */
   
  -public class LoginException extends java.security.GeneralSecurityException {
  +public class LoginException extends JetspeedSecurityException {
   
       /**
        * Constructs a LoginException with no detail message. A detail
  
  
  
  1.1.2.3   +14 -19    
jakarta-jetspeed/src/java/org/apache/jetspeed/services/security/Attic/PortalAuthentication.java
  
  Index: PortalAuthentication.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-jetspeed/src/java/org/apache/jetspeed/services/security/Attic/PortalAuthentication.java,v
  retrieving revision 1.1.2.2
  retrieving revision 1.1.2.3
  diff -u -r1.1.2.2 -r1.1.2.3
  --- PortalAuthentication.java 24 May 2002 18:44:08 -0000      1.1.2.2
  +++ PortalAuthentication.java 25 May 2002 03:02:22 -0000      1.1.2.3
  @@ -68,27 +68,23 @@
    * <p> To logout the caller simply needs to invoke the <code>logout</code> method.  
    * 
    * @author <a href="mailto:[EMAIL PROTECTED]";>David Sean Taylor</a>
  - * @version $Id: PortalAuthentication.java,v 1.1.2.2 2002/05/24 18:44:08 taylor Exp 
$
  + * @version $Id: PortalAuthentication.java,v 1.1.2.3 2002/05/25 03:02:22 taylor Exp 
$
    */
   
  -interface PortalAuthentication
  +public interface PortalAuthentication
   {
       /**
  -     * Perform the authentication and, if successful,
  -     * associate basic attributes and, depending on the security vendor,
  -     * possibly Principals and Credentials with the authenticated
  -     * <code>JetspeedUser</code>. 
  +     * Given a public credential(username) and private credential(password), 
  +     * perform authentication. If authentication succeeds, a 
<code>JetspeedUser</code> 
  +     * is returned representing the authenticated subject.
        *
  -     * Valid exceptions:
  -     *   FailedLoginException
  -     *   AccountExpiredException
  -     *   CredentialExpiredException
  -     *
  -     * @param username the principal's username to be authenticated.
  -     * @param password the primary private credential associated with the username.
  -     * @return a <code>JetspeedUser</code> object containing the attributes 
  -     *         of the authenticated subject.
  -     * @exception LoginException or subclass of if the authentication fails.        
          
  +     * @param username a public credential of the subject to be authenticated.
  +     * @param password a private credentialof the subject to be authenticated.
  +     * @return a <code>JetspeedUser</code> object representing the authenticated 
subject.
  +     * @exception LoginException when general security provider failure.
  +     * @exception FailedLoginException when the authentication failed.
  +     * @exception AccountExpiredException when the subject's account is expired.
  +     * @exception CredentialExpiredException when the subject's credential is 
expired.
        */
       JetspeedUser login(String username, String password)
           throws LoginException;
  @@ -96,15 +92,14 @@
       /**
        * Automatically authenticates and retrieves the portal anonymous user.
        *
  -     * @return a <code>JetspeedUser</code> object containing the attributes 
  -     *         of the authenticated subject.
  +     * @return a <code>JetspeedUser</code> object representing the authenticated 
subject.
        * @exception LoginException if the authentication fails.
        */
       JetspeedUser getAnonymousUser()
           throws LoginException;
   
       /**
  -     * Logout the <code>Subject</code>.
  +     * Logout the <code>JetspeedUser</code>.
        *
        * The logout procedure my may include removing/destroying
        * <code>Principal</code> and <code>Credential</code> information
  
  
  
  No                   revision
  
  
  No                   revision
  
  
  1.1.2.1   +86 -0     
jakarta-jetspeed/src/java/org/apache/jetspeed/services/security/Attic/AuthorizationException.java
  
  
  
  
  1.1.2.1   +86 -0     
jakarta-jetspeed/src/java/org/apache/jetspeed/services/security/Attic/CredentialExpiredException.java
  
  
  
  
  1.1.2.1   +86 -0     
jakarta-jetspeed/src/java/org/apache/jetspeed/services/security/Attic/InsufficientPrivilegeException.java
  
  
  
  
  1.1.2.1   +86 -0     
jakarta-jetspeed/src/java/org/apache/jetspeed/services/security/Attic/JetspeedSecurityException.java
  
  
  
  
  1.1.2.1   +87 -0     
jakarta-jetspeed/src/java/org/apache/jetspeed/services/security/Attic/NotUniqueUserException.java
  
  
  
  
  1.1.2.1   +86 -0     
jakarta-jetspeed/src/java/org/apache/jetspeed/services/security/Attic/UnknownUserException.java
  
  
  
  
  1.1.2.1   +153 -0    
jakarta-jetspeed/src/java/org/apache/jetspeed/services/security/Attic/UserManagement.java
  
  
  
  

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to