KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jacorb > security > level2 > ReceivedCredentialsImpl


1 package org.jacorb.security.level2;
2
3 /*
4  * JacORB - a free Java ORB
5  *
6  * Copyright (C) 1997-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.omg.Security.*;
24 import org.omg.SecurityLevel2.*;
25
26 /**
27  * JacORB implementation of security Credentials
28  *
29  * @author Gerald Brose
30  * @version $Id: ReceivedCredentialsImpl.java,v 1.8 2004/05/06 12:40:01 nicolas Exp $
31  *
32  */

33
34 public class ReceivedCredentialsImpl
35     extends CredentialsImpl
36     implements ReceivedCredentials
37 {
38
39     public ReceivedCredentialsImpl( SecAttribute[] attributes,
40                                     AuthenticationStatus authStatus )
41     {
42         super( attributes,
43                authStatus,
44                InvocationCredentialsType.SecReceivedCredentials );
45     }
46
47     public ReceivedCredentialsImpl( SecAttribute[] attributes )
48     {
49         super( attributes,
50                AuthenticationStatus.SecAuthSuccess ,
51                InvocationCredentialsType.SecReceivedCredentials );
52     }
53   
54     public Credentials accepting_credentials()
55     {
56         return null;
57     }
58
59     public short association_options_used()
60     {
61         return -1;
62     }
63
64     public DelegationState delegation_state()
65     {
66         return DelegationState.SecInitiator;
67     }
68
69     public org.omg.Security.DelegationMode delegation_mode()
70     {
71         return org.omg.Security.DelegationMode.SecDelModeNoDelegation;
72     }
73 }
74
75
76
Popular Tags