// Collection of code snippets by Arne Vajhøj 
// (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) 
package jaastest;

import java.security.Principal;

public class TestPrincipal implements Principal {
    private String name;
    public TestPrincipal(String name) {
        this.name = name;
    }
    public boolean equals(Object another) {
        return name.equals((String)another);
    }
    public String toString() {
        return "*";
    }
    public String getName() {
        return name;
    }
}
