Known Direct Subclasses
AccessControlException |
This exception is thrown by the AccessController to indicate
that a requested access (to a critical system resource such as the
file system or the network) is denied. |
AppletSecurityException |
An applet security exception. |
CertException |
This class is deprecated.
use one of Exceptions defined in the java.security.cert
package. |
RMISecurityException |
This class is deprecated.
Use SecurityException instead.
Application code should never directly reference this class, and
RMISecurityManager no longer throws this subclass of
java.lang.SecurityException .
|
|
Class Overview
Thrown by the security manager to indicate a security violation.
Summary
Public Constructors |
|
SecurityException()
Constructs a SecurityException with no detail message.
|
|
SecurityException(String s)
Constructs a SecurityException with the specified
detail message.
|
|
SecurityException(String message, Throwable cause)
Creates a SecurityException with the specified
detail message and cause.
|
|
SecurityException(Throwable cause)
Creates a SecurityException with the specified cause
and a detail message of (cause==null ? null : cause.toString())
(which typically contains the class and detail message of
cause).
|
[Expand]
Inherited Methods |
From class
java.lang.Throwable
|
From class
java.lang.Object
Object
|
clone()
Creates and returns a copy of this object.
|
boolean
|
equals(Object obj)
Indicates whether some other object is "equal to" this one.
|
void
|
finalize()
Called by the garbage collector on an object when garbage collection
determines that there are no more references to the object.
|
final
Class<?>
|
getClass()
Returns the runtime class of this Object .
|
int
|
hashCode()
Returns a hash code value for the object.
|
final
void
|
notify()
Wakes up a single thread that is waiting on this object's
monitor.
|
final
void
|
notifyAll()
Wakes up all threads that are waiting on this object's monitor.
|
String
|
toString()
Returns a string representation of the object.
|
final
void
|
wait()
Causes the current thread to wait until another thread invokes the
notify() method or the
notifyAll() method for this object.
|
final
void
|
wait(long timeout, int nanos)
Causes the current thread to wait until another thread invokes the
notify() method or the
notifyAll() method for this object, or
some other thread interrupts the current thread, or a certain
amount of real time has elapsed.
|
final
void
|
wait(long timeout)
Causes the current thread to wait until either another thread invokes the
notify() method or the
notifyAll() method for this object, or a
specified amount of time has elapsed.
|
|
Public Constructors
public
SecurityException
()
Constructs a SecurityException
with no detail message.
public
SecurityException
(String s)
Constructs a SecurityException
with the specified
detail message.
public
SecurityException
(String message, Throwable cause)
Creates a SecurityException
with the specified
detail message and cause.
Parameters
message
| the detail message (which is saved for later retrieval
by the getMessage() method). |
cause
| the cause (which is saved for later retrieval by the
getCause() method). (A null value is permitted,
and indicates that the cause is nonexistent or unknown.) |
public
SecurityException
(Throwable cause)
Creates a SecurityException
with the specified cause
and a detail message of (cause==null ? null : cause.toString())
(which typically contains the class and detail message of
cause).
Parameters
cause
| the cause (which is saved for later retrieval by the
getCause() method). (A null value is permitted,
and indicates that the cause is nonexistent or unknown.) |