1 2 3 27 28 29 package org.apache.coyote.tomcat5; 30 31 import java.security.Principal ; 32 33 40 41 public class CoyotePrincipal 42 implements Principal { 43 44 45 47 48 public CoyotePrincipal(String name) { 49 50 this.name = name; 51 52 } 53 54 55 57 58 61 protected String name = null; 62 63 public String getName() { 64 return (this.name); 65 } 66 67 68 70 71 75 public String toString() { 76 77 StringBuffer sb = new StringBuffer ("CoyotePrincipal["); 78 sb.append(this.name); 79 sb.append("]"); 80 return (sb.toString()); 81 82 } 83 84 85 } 86 | Popular Tags |