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