1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package org.apache.jetspeed.security.activeauthentication;
18
19 import java.util.Iterator;
20
21
22 /***
23 * <p>
24 * Identity Token
25 * </p>
26 * <p>
27 * Holds a unique token identifying the current authentication process.
28 * This token can hold one or more unique name / value (object) attributes
29 * </p>
30 * @author <a href="mailto:taylor@apache.org">David Sean Taylor</a>
31 * @version $Id: $
32 *
33 */
34 public interface IdentityToken
35 {
36 /***
37 * Get the value of the identity token
38 * @return the identity token string
39 */
40 String getToken();
41
42 /***
43 * set a name/value attribute on this token
44 * @param name
45 * @param value
46 */
47 void setAttribute(String name, Object value);
48
49 /***
50 * Get an attribute value given the attribute name
51 * @param name
52 * @return
53 */
54 Object getAttribute(String name);
55
56 /***
57 * Get an iterator over all attribute names
58 * @return
59 */
60 Iterator getAttributeNames();
61 }