org.web3d.vrtp.security
Class SunSecurityStrategy

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

public class SunSecurityStrategy
extends SecurityStrategy

SunSecurityStrategy

SunSecurityStrategy handles the Sun-specific aspects of security. As it turns out, most of Sun's security is handled by the java.policy file, so this class doesn't actually do much turning on or off of permissions.

Author:
Don McGregor mcgredo@nps.navy.mil
See Also:
SecurityStrategy, NetscapeSecurityStrategy, MicrosoftSecurityStrategy

Fields inherited from class org.web3d.vrtp.security.SecurityStrategy
firstTime
 
Constructor Summary
SunSecurityStrategy()
           
 
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)
          Enables access to filesystem, to the extent that the user has access.
 void invokePrivilege(FileAccessBadge pFileAccessBadge, java.lang.String pMethodCallbackName, java.lang.Object[] pCallbackArgs)
          Enables access to filesystem, to the extent that the user has access.
 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

SunSecurityStrategy

public SunSecurityStrategy()
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

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 passed into the callback method

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(FileAccessBadge pFileAccessBadge,
                            java.lang.String pMethodCallbackName)
Enables access to filesystem, to the extent that the user has access. Java VM specifications, etc.

Overrides:
invokePrivilege in class SecurityStrategy
Parameters:
pFileAccessBadge - instance requesting filesystem access priviliges
pMethodCallbackName - method that needs to do priviliged things

invokePrivilege

public void invokePrivilege(FileAccessBadge pFileAccessBadge,
                            java.lang.String pMethodCallbackName,
                            java.lang.Object[] pCallbackArgs)
Enables access to filesystem, to the extent that the user has access. Java VM specifications, etc.

Overrides:
invokePrivilege in class SecurityStrategy
Parameters:
pFileAccessBadge - instance requesting filesystem access priviliges
pMethodCallbackName - method that needs to do priviliged things
pCallbackArgs - arguments passed back to the callback method

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