Java Doc for CdcAccessControlContext.java in » 6.0-JDK-Modules » j2me » com » sun » midp » main » Java Source Code / Java DocumentationJava Source Code and Java Documentation
Checks for permission and throw an exception if not allowed.
May block to ask the user a question.
If the permission check failed because an InterruptedException was
thrown, this method will throw a InterruptedSecurityException.
Parameters: permission - ID of the permission to check for,the ID must be fromcom.sun.midp.security.Permissions Parameters: resource - string to insert into the question, can be null ifno %2 in the question Parameters: extraValue - string to insert into the question,can be null if no %3 in the question Parameters: name - name of the requested permission exception: SecurityException - if the specified permissionis not permitted, based on the current security policy exception: InterruptedException - if another thread interrupts thecalling thread while this method is waiting to preempt thedisplay.
Methods inherited from com.sun.j2me.security.AccessControlContextAdapter