Overview | Package | Class | Tree | Index | Help
PREV CLASS | NEXT CLASS FRAMES  | NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD DETAIL:  FIELD | CONSTR | METHOD

Class javax.speech.SpeechPermission

java.lang.Object
  |
  +--java.security.Permission
        |
        +--java.security.BasicPermission
              |
              +--javax.speech.SpeechPermission

public final class SpeechPermission
extends BasicPermission
This class represents speech permissions. A SpeechPermission contains a target name but no actions list; you either have the named permission or you don't.

The target name is the name of the speech permission. The naming convention follows the hierarchical property naming convention. So, an asterisk could be used to represent all speech permissions.

In Java Speech API version 1.0 there is a single SpeechPermission - javax.speech. When that permission is granted an application or applet has access to all the capabilities provided by installed speech recognizers and synthesizers. Without that permission an application or applet has no access to speech capabilities.

As speech technology matures it is anticipated that a finer-grained permission model will be introduced to provide access by applications and applets to some, but not all, speech capabilities.

Before granting speech permission, developers and users should consider the potential impact of the grant.

Permission Target Name What the Permission Allows Risks of Allowing this Permission
javax.speech Creation of a speech recognizer installed on the client. A malicious applet could use a RuleGrammar or DictationGrammar to monitor ("bug") a user's office by transmitting the text or audio of results.
Access to user information stored in speaker profiles possibly including user names and identifiers. Applet can obtain user names, user identifiers and possibly other sensitive information about users of a system.
Access to EngineModeDesc objects through the the Central class and from engines. Applet could obtain information about the speech technology software installed on a system.

See Also:
BasicPermission, SecurityManager, Serialized Form

Constructor Summary
SpeechPermission(String name)
          Creates a new SpeechPermission with the specified name.
SpeechPermission(String name, String actions)
          Creates a new SpeechPermission object with the specified name.
 
Methods inherited from class java.security.BasicPermission
equals, getActions, hashCode, implies, newPermissionCollection
 
Methods inherited from class java.security.Permission
checkGuard, equals, getActions, getName, hashCode, implies, newPermissionCollection, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notifyAll, notify, toString, wait, wait, wait
 

Constructor Detail

SpeechPermission

public SpeechPermission(String name)
Creates a new SpeechPermission with the specified name. The name is the symbolic name of the SpeechPermission: e.g., javax.speech.

Parameters:
name - the name of the SpeechPermission.

SpeechPermission

public SpeechPermission(String name,
                        String actions)
Creates a new SpeechPermission object with the specified name. The name is the symbolic name of the SpeechPermission, and the actions String is currently unused and should be null. This constructor exists for use by the Policy object to instantiate new Permission objects.

Parameters:
name - the name of the SpeechPermission.
actions - should be null.

Overview | Package | Class | Tree | Index | Help
PREV CLASS | NEXT CLASS FRAMES  | NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD DETAIL:  FIELD | CONSTR | METHOD

JavaTM Speech API
Copyright 1997-1998 Sun Microsystems, Inc. All rights reserved
Send comments to javaspeech-comments@sun.com