Ableverse™
Platform 6.0

av.util
Class DeploySecurity

java.lang.Object
  extended by av.util.DeploySecurity

public class DeploySecurity
extends Object

Utilities for security affires according to java deployment.

Author:
Compl

Constructor Summary
DeploySecurity()
           
 
Method Summary
static boolean isAllPermissionGranted(CodeSource cs)
          Checks whether the certificates associated with a CodeSource are all permitted by user, shows untrusted certificates with standard security prompt dialogs to ask the user if necessary.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DeploySecurity

public DeploySecurity()
Method Detail

isAllPermissionGranted

public static boolean isAllPermissionGranted(CodeSource cs)
Checks whether the certificates associated with a CodeSource are all permitted by user, shows untrusted certificates with standard security prompt dialogs to ask the user if necessary.

This currently only works well with SUN Plugin.

For other environments, it simply dumps the certificates and shows this info to the user with JOptionPane.showConfirmDialog(java.awt.Component, Object, String, int) and make the user to choose whether allow unrestricted running.


Ableverse™
Platform 6.0

Copyright© 2006 Ableverse Platform. All rights reserved.