4a2f0f0be43dfd4c1b490cbf3cc48b6ba6084b1cAllan Foster * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
4a2f0f0be43dfd4c1b490cbf3cc48b6ba6084b1cAllan Foster * Copyright (c) 2007 Sun Microsystems Inc. All Rights Reserved
4a2f0f0be43dfd4c1b490cbf3cc48b6ba6084b1cAllan Foster * The contents of this file are subject to the terms
4a2f0f0be43dfd4c1b490cbf3cc48b6ba6084b1cAllan Foster * of the Common Development and Distribution License
4a2f0f0be43dfd4c1b490cbf3cc48b6ba6084b1cAllan Foster * (the License). You may not use this file except in
4a2f0f0be43dfd4c1b490cbf3cc48b6ba6084b1cAllan Foster * compliance with the License.
4a2f0f0be43dfd4c1b490cbf3cc48b6ba6084b1cAllan Foster * You can obtain a copy of the License at
4a2f0f0be43dfd4c1b490cbf3cc48b6ba6084b1cAllan Foster * https://opensso.dev.java.net/public/CDDLv1.0.html or
4a2f0f0be43dfd4c1b490cbf3cc48b6ba6084b1cAllan Foster * See the License for the specific language governing
4a2f0f0be43dfd4c1b490cbf3cc48b6ba6084b1cAllan Foster * permission and limitations under the License.
4a2f0f0be43dfd4c1b490cbf3cc48b6ba6084b1cAllan Foster * When distributing Covered Code, include this CDDL
4a2f0f0be43dfd4c1b490cbf3cc48b6ba6084b1cAllan Foster * Header Notice in each file and include the License file
4a2f0f0be43dfd4c1b490cbf3cc48b6ba6084b1cAllan Foster * If applicable, add the following below the CDDL Header,
4a2f0f0be43dfd4c1b490cbf3cc48b6ba6084b1cAllan Foster * with the fields enclosed by brackets [] replaced by
4a2f0f0be43dfd4c1b490cbf3cc48b6ba6084b1cAllan Foster * your own identifying information:
4a2f0f0be43dfd4c1b490cbf3cc48b6ba6084b1cAllan Foster * "Portions Copyrighted [year] [name of copyright owner]"
4a2f0f0be43dfd4c1b490cbf3cc48b6ba6084b1cAllan Foster * $Id: SAEPrincipal.java,v 1.2 2008/06/25 05:49:31 qcheng Exp $
4a2f0f0be43dfd4c1b490cbf3cc48b6ba6084b1cAllan Fosterpackage com.sun.identity.authentication.modules.sae;
4a2f0f0be43dfd4c1b490cbf3cc48b6ba6084b1cAllan Fosterpublic class SAEPrincipal implements Principal, java.io.Serializable {
4a2f0f0be43dfd4c1b490cbf3cc48b6ba6084b1cAllan Foster throw new NullPointerException("illegal null input");
4a2f0f0be43dfd4c1b490cbf3cc48b6ba6084b1cAllan Foster * Returns the username for this <code>SAEPrincipal</code>.
4a2f0f0be43dfd4c1b490cbf3cc48b6ba6084b1cAllan Foster * @return the username for this <code>SAEPrincipal</code>
4a2f0f0be43dfd4c1b490cbf3cc48b6ba6084b1cAllan Foster * Returns a string representation of this <code>SAEPrincipal</code>.
4a2f0f0be43dfd4c1b490cbf3cc48b6ba6084b1cAllan Foster * @return a string representation of this <code>SAEPrincipal</code>.
4a2f0f0be43dfd4c1b490cbf3cc48b6ba6084b1cAllan Foster * Compares the specified Object with this <code>SAEPrincipal</code>
4a2f0f0be43dfd4c1b490cbf3cc48b6ba6084b1cAllan Foster * for equality. Returns true if the given object is also a
4a2f0f0be43dfd4c1b490cbf3cc48b6ba6084b1cAllan Foster * <code>SAEPrincipal</code> and the two SAEPrincipals
4a2f0f0be43dfd4c1b490cbf3cc48b6ba6084b1cAllan Foster * have the same username.
4a2f0f0be43dfd4c1b490cbf3cc48b6ba6084b1cAllan Foster * @param o Object to be compared for equality with this
4a2f0f0be43dfd4c1b490cbf3cc48b6ba6084b1cAllan Foster * <code>SAEPrincipal</code>.
4a2f0f0be43dfd4c1b490cbf3cc48b6ba6084b1cAllan Foster * @return true if the specified Object is equal equal to this
4a2f0f0be43dfd4c1b490cbf3cc48b6ba6084b1cAllan Foster * <code>SAEPrincipal</code>.
4a2f0f0be43dfd4c1b490cbf3cc48b6ba6084b1cAllan Foster return false;
4a2f0f0be43dfd4c1b490cbf3cc48b6ba6084b1cAllan Foster if (this == o)
4a2f0f0be43dfd4c1b490cbf3cc48b6ba6084b1cAllan Foster return true;
4a2f0f0be43dfd4c1b490cbf3cc48b6ba6084b1cAllan Foster if (!(o instanceof SAEPrincipal))
4a2f0f0be43dfd4c1b490cbf3cc48b6ba6084b1cAllan Foster return false;
4a2f0f0be43dfd4c1b490cbf3cc48b6ba6084b1cAllan Foster return true;
4a2f0f0be43dfd4c1b490cbf3cc48b6ba6084b1cAllan Foster return false;
4a2f0f0be43dfd4c1b490cbf3cc48b6ba6084b1cAllan Foster * Returns a hash code for this <code>SAEPrincipal</code>.
4a2f0f0be43dfd4c1b490cbf3cc48b6ba6084b1cAllan Foster * @return a hash code for this <code>SAEPrincipal</code>.