org.web3d.vrtp.security
Class NetscapeSecurityStrategy

java.lang.Object
  |
  +--org.web3d.vrtp.security.SecurityStrategy
        |
        +--org.web3d.vrtp.security.NetscapeSecurityStrategy

public class NetscapeSecurityStrategy
extends SecurityStrategy

NetscapeSecurityStrategy

NetscapeSecurityStrategy extends the SecurityStrategy, and encapsulates the security functions specific to Netscape. The Netscape security pages are at http://developer.netscape.com/docs/manuals/signedobj/capabilities/index.html

To compile this, you have to include the netscape classes in the classpath. Typically, on a default install this is /Program Files/Netscape/Communicator/Program/java/classes/java40.jar

Author:
Don McGregor mcgredo@nps.navy.mil
See Also:
SecurityStrategy, PropertiesBadge, NetworkCommBadge, FileAccessBadge

Fields inherited from class org.web3d.vrtp.security.SecurityStrategy
firstTime
 
Constructor Summary
NetscapeSecurityStrategy()
           
 
Method Summary
 void invokePrivilege(AllPermissionsBadge pAllPermissionsBadge, java.lang.String pMethodCallbackName)
           
 void invokePrivilege(AllPermissionsBadge pAllPermissionsBadge, java.lang.String pMethodCallbackName, java.lang.Object[] pCallbackArgs)
           
 void invokePrivilege(FileAccessBadge pFileAccessBadge, java.lang.String pMethodCallbackName)
          Enable access to file system.
 void invokePrivilege(FileAccessBadge pFileAccessBadge, java.lang.String pMethodCallbackName, java.lang.Object[] pCallbackArgs)
          Enable access to file system.
 void invokePrivilege(NetworkCommBadge pCommBadge, java.lang.String pMethodCallbackName)
          Enables communication across the network, including multicast.
 void invokePrivilege(NetworkCommBadge pCommBadge, java.lang.String pMethodCallbackName, java.lang.Object[] pCallbackArgs)
          Enables communication across the network, including multicast.
 void invokePrivilege(PropertiesBadge pPropertiesBadge, java.lang.String pMethodCallbackName)
          Enables access to Java properties, such as home directory, user name, Java VM specifications, etc.
 void invokePrivilege(PropertiesBadge pPropertiesBadge, java.lang.String pMethodCallbackName, java.lang.Object[] pCallbackArgs)
          Enables access to Java properties, such as home directory, user name, Java VM specifications, etc.
 
Methods inherited from class org.web3d.vrtp.security.SecurityStrategy
classesForInstances, debug, getSecurityStrategy, setDebug, trace
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NetscapeSecurityStrategy

public NetscapeSecurityStrategy()
Method Detail

invokePrivilege

public void invokePrivilege(NetworkCommBadge pCommBadge,
                            java.lang.String pMethodCallbackName)
Enables communication across the network, including multicast. The object that implements the NetworkCommBadge marker interface is passed in; we call it back after implementing any security calls required. The callback is required in some security schemes because they walk the stack looking for security issues.

Overrides:
invokePrivilege in class SecurityStrategy
Parameters:
pCommBadge - the instance requesting priviliges
pMethodCallbackName - the method to call in that instance

invokePrivilege

public void invokePrivilege(NetworkCommBadge pCommBadge,
                            java.lang.String pMethodCallbackName,
                            java.lang.Object[] pCallbackArgs)
Enables communication across the network, including multicast. The object that implements the NetworkCommBadge marker interface is passed in; we call it back after implementing any security calls required. The callback is required in some security schemes because they walk the stack looking for security issues.

Overrides:
invokePrivilege in class SecurityStrategy
Parameters:
pCommBadge - the instance requesting priviliges
pMethodCallbackName - the method to call in that instance
pCallbackArgs - arguments to the method that is called back

invokePrivilege

public void invokePrivilege(PropertiesBadge pPropertiesBadge,
                            java.lang.String pMethodCallbackName)
Enables access to Java properties, such as home directory, user name, Java VM specifications, etc.

Overrides:
invokePrivilege in class SecurityStrategy
Parameters:
pPropertiesBadge - instance requesting getProperties priviliges
pMethodCallbackName - method that needs to do priviliged things

invokePrivilege

public void invokePrivilege(PropertiesBadge pPropertiesBadge,
                            java.lang.String pMethodCallbackName,
                            java.lang.Object[] pCallbackArgs)
Enables access to Java properties, such as home directory, user name, Java VM specifications, etc.
Overrides:
invokePrivilege in class SecurityStrategy
Parameters:
pPropertiesBadge - instance requesting getProperties priviliges
pMethodCallbackName - method that needs to do priviliged things
pCallbackArgs - arguments to the method that is called back

invokePrivilege

public void invokePrivilege(FileAccessBadge pFileAccessBadge,
                            java.lang.String pMethodCallbackName)
Enable access to file system. This allows read and write to the file system of the machine.
Overrides:
invokePrivilege in class SecurityStrategy
Parameters:
pFileAccessBadge - instance requesting getProperties priviliges
pMethodCallbackName - method that needs to do priviliged things

invokePrivilege

public void invokePrivilege(FileAccessBadge pFileAccessBadge,
                            java.lang.String pMethodCallbackName,
                            java.lang.Object[] pCallbackArgs)
Enable access to file system. This allows read and write to the file system of the machine.
Overrides:
invokePrivilege in class SecurityStrategy
Parameters:
pFileAccessBadge - instance requesting getProperties priviliges
pMethodCallbackName - method that needs to do priviliged things
pCallbackArgs - arguments to the method that is called back

invokePrivilege

public void invokePrivilege(AllPermissionsBadge pAllPermissionsBadge,
                            java.lang.String pMethodCallbackName)
Overrides:
invokePrivilege in class SecurityStrategy

invokePrivilege

public void invokePrivilege(AllPermissionsBadge pAllPermissionsBadge,
                            java.lang.String pMethodCallbackName,
                            java.lang.Object[] pCallbackArgs)
Overrides:
invokePrivilege in class SecurityStrategy