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