1 17 package org.apache.geronimo.tomcat; 18 19 20 import java.security.Principal ; 21 import java.util.List ; 22 import javax.security.auth.Subject ; 23 24 25 28 public class JAASTomcatPrincipal implements Principal { 29 private final String name; 30 private Subject subject; 31 private List roles; 32 33 public JAASTomcatPrincipal(String name) { 34 this.name = name; 35 } 36 37 public String getName() { 38 return name; 39 } 40 41 public Subject getSubject() { 42 return subject; 43 } 44 45 public void setSubject(Subject subject) { 46 this.subject = subject; 47 } 48 49 public List getRoles() { 50 return roles; 51 } 52 53 public void setRoles(List roles) { 54 this.roles = roles; 55 } 56 } 57 | Popular Tags |