Definition of Checkpermission

JDK Doc(JAVA)
checkPermission(Permission)
- Method in class java.lang.SecurityManager 
public void checkPermission (Permission  perm)
Throws a SecurityException if the requested access, specified by the given permission, is not permitted based on the security policy currently in effect. This method calls AccessController.checkPermission with the given permission.Parameters: perm - the requested permission.Throws: SecurityException - if access is not permitted based on the current security policy.Since: JDK1.2

checkPermission(Permission) *2
- Method in class java.security.AccessControlContext 
public void checkPermission (Permission  perm) throws AccessControlException 
Determines whether the access request indicated by the specified permission should be allowed or denied, based on the security policy currently in effect, and the context in this object. This method quietly returns if the access request is permitted, or throws a suitable AccessControlException otherwise.Parameters: perm - the requested permission.Throws: AccessControlException - if the specified permission is not permitted, based on the current security policy and the context encapsulated by this object.

checkPermission(Permission) *3
- Static method in class java.security.AccessController 
public static void checkPermission (Permission  perm) throws AccessControlException 
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 AccessControlException otherwise.Parameters: perm - the requested permission.Throws: AccessControlException - if the specified permission is not permitted, based on the current security policy.

checkPermission(Permission) *4
- Method in interface java.security.acl.AclEntry 
public boolean checkPermission (Permission  permission)
Checks if the specified permission is part of the permission set in this entry.Parameters: permission - the permission to be checked for.Returns: true if the permission is part of the permission set in this entry, false otherwise.

checkPermission(Permission, Object)
- Method in class java.lang.SecurityManager 
public void checkPermission (Permission  perm, Object  context)
Throws a SecurityException if the specified security context is denied access to the resource specified by the given permission. The context must be a security context returned by a previous call to getSecurityContext and the access control decision is based upon the configured security policy for that security context. If context is an instance of AccessControlContext then the AccessControlContext.checkPermission method is invoked with the specified permission. If context is not an instance of AccessControlContext then a SecurityException is thrown.Parameters: perm - the specified permission - a system-dependent security context.context - a system-dependent security context.Throws: SecurityException - if the specified security context is denied access to the resource specified by the given permission.Since: JDK1.2See Also:  getSecurityContext() , AccessControlContext.checkPermission(java.security.Permission)

checkPermission(Principal, Permission)
- Method in interface java.security.acl.Acl 
public boolean checkPermission (Principal  principal, Permission  permission)
Checks whether or not the specified principal has the specified permission. If it does, true is returned, otherwise false is returned. More specifically, this method checks whether the passed permission is a member of the allowed permission set of the specified principal. The allowed permission set is determined by the same algorithm as is used by the getPermissions method.Parameters: principal - the principal, assumed to be a valid authenticated Principal. - the permission to be checked for.permission - the permission to be checked for.Returns: true if the principal has the specified permission, false otherwise.See Also:  getPermissions(java.security.Principal)

Search Dictionary:
Search Web Search Dictionary