1 7 8 package com.sun.security.auth; 9 10 25 public class NTSidUserPrincipal extends NTSid { 26 27 private static final long serialVersionUID = -5573239889517749525L; 28 29 39 public NTSidUserPrincipal(String name) { 40 super(name); 41 } 42 43 50 public String toString() { 51 java.text.MessageFormat form = new java.text.MessageFormat 52 (sun.security.util.ResourcesMgr.getString 53 ("NTSidUserPrincipal: name", 54 "sun.security.util.AuthResources")); 55 Object [] source = {getName()}; 56 return form.format(source); 57 } 58 59 73 public boolean equals(Object o) { 74 if (o == null) 75 return false; 76 77 if (this == o) 78 return true; 79 80 if (!(o instanceof NTSidUserPrincipal)) 81 return false; 82 83 return super.equals(o); 84 } 85 } 86 | Popular Tags |