KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > alfresco > filesys > server > auth > passthru > PassthruDetails


1 /*
2  * Copyright (C) 2006 Alfresco, Inc.
3  *
4  * Licensed under the Mozilla Public License version 1.1
5  * with a permitted attribution clause. You may obtain a
6  * copy of the License at
7  *
8  * http://www.alfresco.org/legal/license.txt
9  *
10  * Unless required by applicable law or agreed to in writing,
11  * software distributed under the License is distributed on an
12  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
13  * either express or implied. See the License for the specific
14  * language governing permissions and limitations under the
15  * License.
16  */

17 package org.alfresco.filesys.server.auth.passthru;
18
19 import org.alfresco.filesys.server.SrvSession;
20
21 /**
22  * Passthru Details Class
23  * <p>
24  * Contains the details of a passthru connection to a remote server and the local session that the
25  * request originated from.
26  */

27 class PassthruDetails
28 {
29
30     // Server session
31

32     private SrvSession m_sess;
33
34     // Authentication session connected to the remote server
35

36     private AuthenticateSession m_authSess;
37
38     /**
39      * Class constructor
40      *
41      * @param sess SrvSession
42      * @param authSess AuthenticateSession
43      */

44     public PassthruDetails(SrvSession sess, AuthenticateSession authSess)
45     {
46         m_sess = sess;
47         m_authSess = authSess;
48     }
49
50     /**
51      * Return the session details
52      *
53      * @return SrvSession
54      */

55     public final SrvSession getSession()
56     {
57         return m_sess;
58     }
59
60     /**
61      * Return the authentication session that is connected to the remote server
62      *
63      * @return AuthenticateSession
64      */

65     public final AuthenticateSession getAuthenticateSession()
66     {
67         return m_authSess;
68     }
69 }
70
Popular Tags