java.lang
Class SecurityException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.lang.RuntimeException
              extended byjava.lang.SecurityException

public class SecurityException
extends RuntimeException

A JCRE owned instance of SecurityException is thrown by the Java Card Virtual Machine to indicate a security violation.

This exception is thrown when an attempt is made to illegally access an object belonging to a another applet. It may optionally be thrown by a Java Card VM implementation to indicate fundamental language restrictions, such as attempting to invoke a private method in another class.

For security reasons, the JCRE implementation may mute the card instead of throwing this exception.

JCRE owned instances of exception classes are temporary JCRE Entry Point Objects and can be accessed from any applet context. References to these temporary objects cannot be stored in class variables or instance variables or array components. See Java Card Runtime Environment (JCRE) Specification, section 6.2.1 for details.

This Java Card class's functionality is a strict subset of the definition in the Java Platform Core API Specification.


Constructor Summary
SecurityException()
          Constructs a SecurityException.
 
Methods inherited from class java.lang.Object
equals
 

Constructor Detail

SecurityException

public SecurityException()
Constructs a SecurityException.



Java and all Java-based trademarks and logos are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other countries.