javax.sound.sampled
Class AudioPermission
java.lang.Object
java.security.Permission
java.security.BasicPermission
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
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