/**
 *
 * Copyright 2003-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.geronimo.security;

import java.security.Principal;


/**
 * @version $Revision: 1.4 $ $Date: 2004/03/10 09:59:25 $
 */
public class PrimaryRealmPrincipal extends RealmPrincipal {

    public PrimaryRealmPrincipal(String realm, Principal principal) {
        super(realm, principal);
    }
}

@@ -727,17 +727,17 @@
 sion: 1.
-4
+5
  $ $Date
@@ -748,21 +748,21 @@
 04/0
-3/10 09:59:25
+6/13 16:52:53
  $%0A 
@@ -895,16 +895,16 @@
 ipal) %7B%0A
-
         
@@ -933,11 +933,722 @@
 );%0A    %7D
+%0A%0A    /**%0A     * Compares this principal to the specified object.  Returns true%0A     * if the object passed in matches the principal represented by%0A     * the implementation of this interface.%0A     *%0A     * @param another principal to compare with.%0A     * @return true if the principal passed in is the same as that%0A     *         encapsulated by this principal, and false otherwise.%0A     */%0A    public boolean equals(Object another) %7B%0A        if (!(another instanceof PrimaryRealmPrincipal)) return false;%0A%0A        PrimaryRealmPrincipal realmPrincipal = (PrimaryRealmPrincipal) another;%0A%0A        return getRealm().equals(realmPrincipal.getRealm()) && getPrincipal().equals(realmPrincipal.getPrincipal());%0A    %7D
 %0A%7D%0A

Should implement its own equals() method.