KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > exoplatform > services > security > impl > BasePrincipal


1 /*
2  * Copyright 2001-2003 The eXo platform SARL All rights reserved.
3  * Please look at license.txt in info directory for more license detail.
4  */

5
6 package org.exoplatform.services.security.impl;
7
8 import java.security.Principal JavaDoc;
9
10 /**
11  * Created y the eXo platform team
12  * User: Benjamin Mestrallet
13  * Date: 28 avr. 2004
14  */

15 public class BasePrincipal implements Principal JavaDoc {
16
17   private String JavaDoc name;
18
19   public BasePrincipal(String JavaDoc name) {
20     this.name = name;
21   }
22
23   public String JavaDoc getName() {
24     return name;
25   }
26
27   public String JavaDoc toString() {
28     return getName();
29   }
30 }
31
Popular Tags