1 16 17 package org.apache.coyote.tomcat4; 18 19 import java.security.Principal ; 20 21 28 29 public class CoyotePrincipal 30 implements Principal { 31 32 33 35 36 public CoyotePrincipal(String name) { 37 38 this.name = name; 39 40 } 41 42 43 45 46 49 protected String name = null; 50 51 public String getName() { 52 return (this.name); 53 } 54 55 56 58 59 63 public String toString() { 64 65 StringBuffer sb = new StringBuffer ("CoyotePrincipal["); 66 sb.append(this.name); 67 sb.append("]"); 68 return (sb.toString()); 69 70 } 71 72 73 } 74 | Popular Tags |