Package com.dassault_systemes.PortalNative.PLNtools

   
Class SecurityServices

 
Class Hierarchy
java.lang.Object
  |
  +-com.dassault_systemes.PortalNative.PLNtools.SecurityServices
Class Location

Framework : PortalNative

Module : PLNtools

Class Description

public class SecurityServices

This class manages security permissions on the browsers.

Field Summary

Constructor Summary

Method Summary
SecurityServices get()
FileOutputStream newFileOutputStream(File file)
FileInputStream newFileInputStream(File file)
File newFile(String filename)
Process exec(String[] cmdarray, String[] envp)
void connect(URLConnection connection)
String getSystemProperty(String name)


Field Detail

Constructor Detail

Method Detail

get

    SecurityServices get()

Returns the unique instance of this class


newFileOutputStream

    FileOutputStream newFileOutputStream(File file)

Browser-correct way to obtain a file output stream


newFileInputStream

    FileInputStream newFileInputStream(File file)

Browser-correct way to obtain a file input stream


newFile

    File newFile(String filename)

Gets a root file, guaranted to be usable from a signed applet

Parameters:
filename
name of the file

exec

    Process exec(String[] cmdarray, String[] envp)

Executes a process

Parameters:
cmdarray
command and parameters to execute
envp
environment variables
Returns:
a process

connect

    void connect(URLConnection connection)

Connects the URLConnection. After, you can do getContentType, getContentLength, openStream on it etc...


getSystemProperty

    String getSystemProperty(String name)

Returns a system property like java.lang.System.getProperty



Copyright © 2000, Dassault Systèmes. All rights reserved