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
public void connect(URLConnection connection)
Connects the URLConnection.
public Process exec(String[] cmdarray, String[] envp)
Executes a process
public static SecurityServices get()
Returns the unique instance of this class
public String getSystemProperty(String name)
Returns a system property like java.lang.System.getProperty
public File newFile(String filename)
Gets a root file, guaranted to be usable from a signed applet
public FileInputStream newFileInputStream(File file)
Browser-correct way to obtain a file input stream
public FileOutputStream newFileOutputStream(File file)
Browser-correct way to obtain a file output stream


Field Detail

Constructor Detail

Method Detail

connect

    public void connect(URLConnection connection)

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


exec

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

Executes a process

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

get

    public static SecurityServices get()

Returns the unique instance of this class


getSystemProperty

    public String getSystemProperty(String name)

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


newFile

    public File newFile(String filename)

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

Parameters:
filename
name of the file

newFileInputStream

    public FileInputStream newFileInputStream(File file)

Browser-correct way to obtain a file input stream


newFileOutputStream

    public FileOutputStream newFileOutputStream(File file)

Browser-correct way to obtain a file output stream



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