abstract class BasicPermission : Permission, Serializable

Known Direct Subclasses

AuthPermission

Legacy security code; do not use.

LinkPermission

The Permission class for link creation operations.

LoggingPermission

Legacy security code; do not use.

NetPermission

Legacy security code; do not use.

PropertyPermission

Legacy security code; do not use.

ReflectPermission

Legacy security code; do not use.

RuntimePermission

Legacy security code; do not use.

SQLPermission

Legacy security code; do not use.

SSLPermission

Legacy security code; do not use.

SecurityPermission

Legacy security code; do not use.

SerializablePermission

This legacy security is not supported on Android.

Android doesn't support SecurityManager. Do not use this class.

Summary

Public constructors

BasicPermission(name: String!, actions: String!)

Public methods
open String!
open Boolean
Inherited functions

From class Permission

Unit checkGuard(object: Any!)

Determines whether or not to allow access to the guarded object object. Returns silently if access is allowed. Otherwise, throws a SecurityException.

String! getName()
PermissionCollection! newPermissionCollection()

Public constructors

BasicPermission

BasicPermission(name: String!)

BasicPermission

BasicPermission(
    name: String!,
    actions: String!)

Public methods

getActions

open fun getActions(): String!

Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.

Last updated 2026-02-13 UTC.