FileDocCategorySizeDatePackage
PrincipalImpl.javaAPI DocAndroid 1.5 API1613Wed May 06 22:41:06 BST 2009org.apache.harmony.security.tests.support.acl

PrincipalImpl

public class PrincipalImpl extends Object implements Principal
Additional class for verification Principal interface

Fields Summary
private String
user
Constructors Summary
public PrincipalImpl(String s)

        user = s;
    
Methods Summary
public booleanequals(java.lang.Object obj)

        if(obj instanceof PrincipalImpl) {
            PrincipalImpl principalimpl = (PrincipalImpl)obj;
            return user.equals(principalimpl.toString());
        } else {
            return false;
        }
    
public java.lang.StringgetName()

        return user;
    
public inthashCode()

        return user.hashCode();
    
public java.lang.StringtoString()

        return user;