Java Doc for SecureLocalAspectManager.java in  » Byte-Code » PROSE » ch » ethz » prose » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Byte Code » PROSE » ch.ethz.prose 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   ch.ethz.prose.LocalAspectManager
      ch.ethz.prose.SecureLocalAspectManager

SecureLocalAspectManager
public class SecureLocalAspectManager extends LocalAspectManager (Code)
Class SecureLocalAspectManager extends LocalAspectManager. It recognizes SignedExtensions in insertExtension and performs the insertion under the permissions granted to the SecureLocalAspectManager class, in case that the signature is valid and the signer is trusted to insert extensions.


version:
   $Revision: 1.2 $
author:
   Marcel Mueller
author:
  


author:
   Used Properties:
author:
  


    author:
      
  • ch.ethz.prose.keystore.location
    author:
       Values: path to keystore to use

    author:
       Usage:

  • author:
      
  • ch.ethz.prose.keystore.password
    author:
       Values: password to keystore

    author:
       Usage:

  • author:
      



Constructor Summary
public  SecureLocalAspectManager(boolean isConnectedToVM, ch.ethz.jvmai.JVMAspectInterface ai)
    

Method Summary
public synchronized  voidinsert(Aspect ext)
     Insert the extension ext into the extension manager.
protected  booleanvalidateKey(PublicKey key)
     Decides whether a key is valid and trusted to insert an extension under the privileged permissions of this class.

The actual implementation is very restricted: accepts if a trusted certificate exists in the keystore defined by the system properties ch.ethz.prose.keystore.location and ch.ethz.prose.keystore.password.



Constructor Detail
SecureLocalAspectManager
public SecureLocalAspectManager(boolean isConnectedToVM, ch.ethz.jvmai.JVMAspectInterface ai)(Code)
Constructs an extension manager that inserts SignedExtensions under privileged rights




Method Detail
insert
public synchronized void insert(Aspect ext) throws AspectManagerException(Code)
Insert the extension ext into the extension manager. If ext is of type SignedAspect, the signature is verified and if the key is known to be trusted to insert extensions, the insertion is performed exclusively under the rights granted to this class.

If the extension fails the verification or the key is not trusted, it is attempted to install the extension in the usual way (without privileged permissions).
Parameters:
  ext - the extension to be inserted
exception:
  AspectManagerException - if extension cannot be installed




validateKey
protected boolean validateKey(PublicKey key)(Code)
Decides whether a key is valid and trusted to insert an extension under the privileged permissions of this class.

The actual implementation is very restricted: accepts if a trusted certificate exists in the keystore defined by the system properties ch.ethz.prose.keystore.location and ch.ethz.prose.keystore.password. (ATTENTION: THIS IS A HUGE SECURITY HOLE!!!). Feel free to build a subclass with a better implementation.

It was thought to attach certificates to signed extensions to help the target system to make its decision. As in JDK 1.2.2 the class java.security.cert.Certificate is not Serializable, this feature is unluckily not yet implemented.
Parameters:
  key - the key that signed the extension true if a trusted certificate exists in the keystore




Fields inherited from ch.ethz.prose.LocalAspectManager
static int ABORT(Code)(Java Doc)
static int COMMIT(Code)(Java Doc)
protected JoinPointManager jpm(Code)(Java Doc)

Methods inherited from ch.ethz.prose.LocalAspectManager
public void abort(Object txId)(Code)(Java Doc)
public void classLoaded(Class newClass)(Code)(Java Doc)
public void commit(Object txId)(Code)(Java Doc)
protected void createJoinPointManager(boolean isConnected, JVMAspectInterface ai)(Code)(Java Doc)
public synchronized void doInsertExtension(Aspect ext) throws AspectManagerException(Code)(Java Doc)
public synchronized void doWithdrawExtension(Aspect ext)(Code)(Java Doc)
protected void finalize()(Code)(Java Doc)
public List getAllAspects()(Code)(Java Doc)
public JoinPointManager getJoinPointManager()(Code)(Java Doc)
public void insert(Aspect x, Object txId)(Code)(Java Doc)
public void insert(Aspect x)(Code)(Java Doc)
public boolean isConnectedToVM()(Code)(Java Doc)
public synchronized void startup()(Code)(Java Doc)
public synchronized void teardown()(Code)(Java Doc)
public void withdraw(Aspect x, Object txId)(Code)(Java Doc)
public void withdraw(Aspect x)(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.