| java.lang.Object com.sun.j2me.security.AccessControlContextAdapter
All known Subclasses: com.sun.midp.main.CdcAccessControlContext, com.sun.midp.main.CldcAccessControlContext,
AccessControlContextAdapter | abstract public class AccessControlContextAdapter implements AccessControlContext(Code) | | A class help implement the AccessControlContext interface.
|
Method Summary | |
public void | checkPermission(String name) Determines whether the access request indicated by the
specified permission should be allowed or denied, based on
the security policy currently in effect. | public void | checkPermission(String name, String resource) Check for permission and throw an exception if not allowed. | public void | checkPermission(String name, String resource, String extraValue) Checks for permission and throw an exception if not allowed. | abstract public void | checkPermissionImpl(String name, String resource, String extraValue) Checks for permission and throw an exception if not allowed. |
checkPermission | public void checkPermission(String name) throws SecurityException(Code) | | Determines whether the access request indicated by the
specified permission should be allowed or denied, based on
the security policy currently in effect.
This method quietly returns if the access request
is permitted, or throws a suitable SecurityException otherwise.
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: name - name of the requested permission exception: SecurityException - if the specified permissionis not permitted, based on the current security policy |
checkPermission | public void checkPermission(String name, String resource) throws SecurityException(Code) | | Check 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: name - name of the requested permission Parameters: resource - string to insert into the question, can be null ifno %2 in the question Parameters: name - name of the requested permission exception: SecurityException - if the specified permissionis not permitted, based on the current security policy |
checkPermission | public void checkPermission(String name, String resource, String extraValue) throws SecurityException(Code) | | 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 |
checkPermissionImpl | abstract public void checkPermissionImpl(String name, String resource, String extraValue) throws SecurityException, InterruptedException(Code) | | 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. |
|
|