KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jacorb > security > sas > NullContext


1 package org.jacorb.security.sas;
2
3 /*
4  * JacORB - a free Java ORB
5  *
6  * Copyright (C) 2002-2004 Gerald Brose
7  *
8  * This library is free software; you can redistribute it and/or
9  * modify it under the terms of the GNU Library General Public
10  * License as published by the Free Software Foundation; either
11  * version 2 of the License, or (at your option) any later version.
12  *
13  * This library is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16  * Library General Public License for more details.
17  *
18  * You should have received a copy of the GNU Library General Public
19  * License along with this library; if not, write to the Free
20  * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
21  */

22
23 import org.apache.avalon.framework.configuration.Configuration;
24 import org.apache.avalon.framework.configuration.ConfigurationException;
25 import org.omg.CORBA.ORB JavaDoc;
26 import org.omg.CSIIOP.CompoundSecMechList;
27 import org.omg.IOP.Codec JavaDoc;
28
29 public class NullContext
30     implements ISASContext
31 {
32
33     public void configure(Configuration configuration)
34         throws ConfigurationException
35     {
36     }
37
38     public String JavaDoc getMechOID() {
39         return "";
40     }
41
42     /* (non-Javadoc)
43      * @see org.jacorb.security.sas.ISASContext#createContext(org.omg.PortableInterceptor.ClientRequestInfo)
44      */

45     public byte[] createClientContext(ORB JavaDoc orb, Codec JavaDoc codec, CompoundSecMechList csmList) {
46         return new byte[0];
47     }
48
49     /* (non-Javadoc)
50      * @see org.jacorb.security.sas.ISASContext#getCreatedPrincipal()
51      */

52     public String JavaDoc getClientPrincipal() {
53         return "";
54     }
55
56     /* (non-Javadoc)
57      * @see org.jacorb.security.sas.ISASContext#validateContext(org.omg.PortableInterceptor.ServerRequestInfo, byte[])
58      */

59     public boolean validateContext(ORB JavaDoc orb, Codec JavaDoc codec, byte[] contextToken) {
60         return true;
61     }
62
63     /* (non-Javadoc)
64      * @see org.jacorb.security.sas.ISASContext#getValidatedPrincipal()
65      */

66     public String JavaDoc getValidatedPrincipal() {
67         return "";
68     }
69
70     /* (non-Javadoc)
71      * @see org.jacorb.security.sas.ISASContext#initClient()
72      */

73     public void initClient() {
74     }
75
76     /* (non-Javadoc)
77      * @see org.jacorb.security.sas.ISASContext#initTarget()
78      */

79     public void initTarget() {
80     }
81 }
82
Popular Tags