|
1 /* |
|
2 * Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef CSTSACE_H |
|
20 #define CSTSACE_H |
|
21 |
|
22 // INCLUDES |
|
23 #include "cstsasn1sequence.h" |
|
24 #include "cstsprincipal.h" |
|
25 #include "cstsapdumaskpermission.h" |
|
26 #include "cstsuserauth.h" |
|
27 #include "stscommon.h" |
|
28 |
|
29 namespace java |
|
30 { |
|
31 namespace satsa |
|
32 { |
|
33 |
|
34 class CSTSPrincipal; |
|
35 class CSTSAPDUMaskPermission; |
|
36 class CSTSUserAuth; |
|
37 |
|
38 // CLASS DECLARATION |
|
39 /** |
|
40 * ACE type module |
|
41 * |
|
42 * ACE ::= SEQUENCE { |
|
43 * principals [0] Principals OPTIONAL, |
|
44 * permissions [1] Permissions OPTIONAL, |
|
45 * userAuthentications [2] UserAuthentications OPTIONAL, |
|
46 * ... -- for future extensions |
|
47 * } |
|
48 */ |
|
49 NONSHARABLE_CLASS(CSTSAce): public CSTSASN1Sequence |
|
50 { |
|
51 public: |
|
52 |
|
53 static CSTSAce* NewLC(); |
|
54 |
|
55 virtual ~CSTSAce(); |
|
56 |
|
57 public: |
|
58 |
|
59 /** |
|
60 * Getter for Principals |
|
61 * @return array of Principals |
|
62 */ |
|
63 const CArrayPtr< CSTSPrincipal>& Principals() const; |
|
64 |
|
65 /** |
|
66 * Getter for APDUMaskPermissions |
|
67 * @return array of APDUMaskPermissions |
|
68 */ |
|
69 const CArrayPtr< CSTSAPDUMaskPermission>& APDUMaskPermissions() const; |
|
70 |
|
71 /** |
|
72 * Getter for UserAuthentications |
|
73 * @return array of UserAuthentications |
|
74 */ |
|
75 const CArrayPtr< CSTSUserAuth>& UserAuthentications() const; |
|
76 |
|
77 public: |
|
78 |
|
79 /** |
|
80 * From MSTSASN1Module |
|
81 * @param aRawData raw-data to be parsed in this instance |
|
82 */ |
|
83 void DecodeL(const TDesC8& aRawData); |
|
84 |
|
85 protected: |
|
86 |
|
87 void ConstructL(); |
|
88 |
|
89 CSTSAce(); |
|
90 |
|
91 protected: |
|
92 // principals, owned |
|
93 CArrayPtr< CSTSPrincipal>* iPrincipals; |
|
94 |
|
95 // APDU mask permissions, owned |
|
96 CArrayPtr< CSTSAPDUMaskPermission>* iApduMaskPermissions; |
|
97 |
|
98 // User authentications, owned |
|
99 CArrayPtr< CSTSUserAuth>* iUserAuthentications; |
|
100 |
|
101 }; |
|
102 |
|
103 } // namespace satsa |
|
104 } // namespace java |
|
105 #endif // CSTSACE_H |
|
106 // End of File |