FileDocCategorySizeDatePackage
SimplePrincipal.javaAPI DocExample461Mon Jan 15 13:06:04 GMT 2001javasec.samples.ch15

SimplePrincipal

public class SimplePrincipal extends Object implements Serializable, Principal

Fields Summary
private String
name
Constructors Summary
public SimplePrincipal(String s)

        name = s;
    
Methods Summary
public booleanequals(java.lang.Object o)

        if (!(o instanceof SimplePrincipal))
            return false;
        return ((SimplePrincipal) o).name.equals(name);
    
public java.lang.StringgetName()

        return name;