1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18 package org.apache.jetspeed.sso.impl;
19
20 import java.io.Serializable;
21
22 import org.apache.jetspeed.sso.SSOContext;
23
24 /***
25 * SSOContextImpl
26 * Class holding credential information
27 *
28 * @author <a href="mailto:rogerrut@apache.org">Roger Ruttimann</a>
29 * @version $Id: SSOContextImpl.java 516448 2007-03-09 16:25:47Z ate $
30 */
31 public class SSOContextImpl implements SSOContext, Serializable
32 {
33 private long remotePrincipalId;
34 private String remoteCredential;
35 private String remotePrincipal;
36 private String portalPrincipal;
37
38 /***
39 * Constructor takes all arguments since members can't be altered
40 */
41 public SSOContextImpl(long remotePrincipalId, String remotePrincipal, String remoteCredential)
42 {
43 super();
44 this.remotePrincipalId = remotePrincipalId;
45 this.remotePrincipal = remotePrincipal;
46 this.remoteCredential = remoteCredential;
47 }
48
49 public SSOContextImpl(long remotePrincipalId, String remotePrincipal, String remoteCredential, String portalPrincipal)
50 {
51 super();
52 this.remotePrincipalId = remotePrincipalId;
53 this.remotePrincipal = remotePrincipal;
54 this.remoteCredential = remoteCredential;
55 this.portalPrincipal = portalPrincipal;
56 }
57
58
59
60
61 public long getRemotePrincipalId()
62 {
63 return this.remotePrincipalId;
64 }
65
66
67
68
69 public String getRemotePrincipalName()
70 {
71 return this.remotePrincipal;
72 }
73
74
75
76
77 public String getRemoteCredential()
78 {
79 return this.remoteCredential;
80 }
81
82
83
84
85 public String getPortalPrincipalName()
86 {
87 return this.portalPrincipal;
88 }
89
90 }