01: package com.technoetic.xplanner.security;
02:
03: import com.technoetic.xplanner.domain.Person;
04:
05: import java.io.Serializable;
06: import java.security.Principal;
07:
08: public class PersonPrincipal implements Principal, Serializable {
09: private Person person;
10:
11: public PersonPrincipal(Person person) {
12: this .person = person;
13: }
14:
15: public String getName() {
16: return person.getUserId();
17: }
18:
19: public Person getPerson() {
20: return person;
21: }
22: }
|