javax.sound.sampled
Class AudioPermission

java.lang.Object
  extended by java.security.Permission
      extended by java.security.BasicPermission
          extended by javax.sound.sampled.AudioPermission
All Implemented Interfaces:
Serializable, Guard

public class AudioPermission
extends BasicPermission

This represents the permission to use an audio device. The only predefined permission names are "play" and "record".

Since:
1.3
See Also:
Serialized Form

Constructor Summary
AudioPermission(String name)
          Construct an AudioPermission with the given name.
AudioPermission(String name, String actions)
          Construct an AudioPermission with the given name.
 
Method Summary
 
Methods inherited from class java.security.BasicPermission
equals, getActions, hashCode, implies, newPermissionCollection
 
Methods inherited from class java.security.Permission
checkGuard, getName, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AudioPermission

public AudioPermission(String name)
Construct an AudioPermission with the given name.

Parameters:
name - the name of the permission, like "play" or "record"

AudioPermission

public AudioPermission(String name,
                       String actions)
Construct an AudioPermission with the given name.

Parameters:
name - the name of the permission, like "play" or "record"
actions - the actions; should be null