1 7 8 package com.sun.security.auth; 9 10 29 public class NTSidDomainPrincipal extends NTSid { 30 31 private static final long serialVersionUID = 5247810785821650912L; 32 33 44 public NTSidDomainPrincipal(String name) { 45 super(name); 46 } 47 48 56 public String toString() { 57 java.text.MessageFormat form = new java.text.MessageFormat 58 (sun.security.util.ResourcesMgr.getString 59 ("NTSidDomainPrincipal: name", 60 "sun.security.util.AuthResources")); 61 Object [] source = {getName()}; 62 return form.format(source); 63 } 64 65 79 public boolean equals(Object o) { 80 if (o == null) 81 return false; 82 83 if (this == o) 84 return true; 85 86 if (!(o instanceof NTSidDomainPrincipal)) 87 return false; 88 89 return super.equals(o); 90 } 91 } 92 | Popular Tags |