Added in API level 1

SecurityManager

open class SecurityManager
kotlin.Any
   ↳ java.lang.SecurityManager

Legacy security code; do not use.

Security managers do not provide a secure environment for executing untrusted code and are unsupported on Android. Untrusted code cannot be safely isolated within a single VM on Android. Application developers can assume that there's no SecurityManager installed, i.e. java.lang.System#getSecurityManager() will return null.

Summary

Public constructors

Public methods
open Unit
checkAccept(host: String!, port: Int)

open Unit

open Unit

open Unit

open Unit
checkConnect(host: String!, port: Int)

open Unit
checkConnect(host: String!, port: Int, context: Any!)

open Unit

open Unit

open Unit

open Unit
checkExit(status: Int)

open Unit

open Unit

open Unit
checkMemberAccess(clazz: Class<*>!, which: Int)

open Unit

open Unit

open Unit

open Unit

open Unit

open Unit
checkPermission(perm: Permission!, context: Any!)

open Unit

open Unit

open Unit

open Unit

open Unit
checkRead(file: String!)

open Unit
checkRead(file: String!, context: Any!)

open Unit

open Unit

open Unit

open Boolean

open Unit

open Unit

open Boolean

open Any!

open ThreadGroup!

Returns the current thread's thread group.

Protected methods
open Int

open Int

open ClassLoader!

open Class<*>!

open Array<Class<Any!>!>!

open Boolean
inClass(name: String!)

open Boolean

Properties
Boolean

Public constructors

SecurityManager

Added in API level 1
SecurityManager()

Public methods

checkAccept

Added in API level 1
open fun checkAccept(
    host: String!,
    port: Int
): Unit

checkAccess

Added in API level 1
open fun checkAccess(t: Thread!): Unit

checkAccess

Added in API level 1
open fun checkAccess(g: ThreadGroup!): Unit

checkAwtEventQueueAccess

Added in API level 1
open fun checkAwtEventQueueAccess(): Unit

checkConnect

Added in API level 1
open fun checkConnect(
    host: String!,
    port: Int
): Unit

checkConnect

Added in API level 1
open fun checkConnect(
    host: String!,
    port: Int,
    context: Any!
): Unit

checkCreateClassLoader

Added in API level 1
open fun checkCreateClassLoader(): Unit

checkDelete

Added in API level 1
open fun checkDelete(file: String!): Unit

checkExec

Added in API level 1
open fun checkExec(cmd: String!): Unit

checkExit

Added in API level 1
open fun checkExit(status: Int): Unit
Added in API level 1
open fun checkLink(lib: String!): Unit

checkListen

Added in API level 1
open fun checkListen(port: Int): Unit

checkMemberAccess

Added in API level 1
Deprecated in API level 33
open fun checkMemberAccess(
    clazz: Class<*>!,
    which: Int
): Unit

Deprecated: this method is deprecated.

checkMulticast

Added in API level 1
open fun checkMulticast(maddr: InetAddress!): Unit

checkMulticast

Added in API level 1
Deprecated in API level 15
open fun checkMulticast(
    maddr: InetAddress!,
    ttl: Byte
): Unit

Deprecated: use checkMulticast(java.net.InetAddress) instead.

checkPackageAccess

Added in API level 1
open fun checkPackageAccess(pkg: String!): Unit

checkPackageDefinition

Added in API level 1
open fun checkPackageDefinition(pkg: String!): Unit

checkPermission

Added in API level 1
open fun checkPermission(perm: Permission!): Unit

checkPermission

Added in API level 1
open fun checkPermission(
    perm: Permission!,
    context: Any!
): Unit

checkPrintJobAccess

Added in API level 1
open fun checkPrintJobAccess(): Unit

checkPropertiesAccess

Added in API level 1
open fun checkPropertiesAccess(): Unit

checkPropertyAccess

Added in API level 1
open fun checkPropertyAccess(key: String!): Unit

checkRead

Added in API level 1
open fun checkRead(fd: FileDescriptor!): Unit

checkRead

Added in API level 1
open fun checkRead(file: String!): Unit

checkRead

Added in API level 1
open fun checkRead(
    file: String!,
    context: Any!
): Unit

checkSecurityAccess

Added in API level 1
open fun checkSecurityAccess(target: String!): Unit

checkSetFactory

Added in API level 1
open fun checkSetFactory(): Unit

checkSystemClipboardAccess

Added in API level 1
open fun checkSystemClipboardAccess(): Unit

checkTopLevelWindow

Added in API level 1
Deprecated in API level 33
open fun checkTopLevelWindow(window: Any!): Boolean

Deprecated: this method is deprecated.

checkWrite

Added in API level 1
open fun checkWrite(fd: FileDescriptor!): Unit

checkWrite

Added in API level 1
open fun checkWrite(file: String!): Unit

getInCheck

Added in API level 1
Deprecated in API level 15
open fun getInCheck(): Boolean

Deprecated: Use #checkPermission instead.

getSecurityContext

Added in API level 1
open fun getSecurityContext(): Any!

getThreadGroup

Added in API level 1
open fun getThreadGroup(): ThreadGroup!

Returns the current thread's thread group.

Protected methods

classDepth

Added in API level 1
Deprecated in API level 15
protected open fun classDepth(name: String!): Int

Deprecated: Use #checkPermission instead.

classLoaderDepth

Added in API level 1
Deprecated in API level 15
protected open fun classLoaderDepth(): Int

Deprecated: Use #checkPermission instead.

currentClassLoader

Added in API level 1
Deprecated in API level 15
protected open fun currentClassLoader(): ClassLoader!

Deprecated: Use #checkPermission instead.

currentLoadedClass

Added in API level 1
Deprecated in API level 15
protected open fun currentLoadedClass(): Class<*>!

Deprecated: Use #checkPermission instead.

getClassContext

Added in API level 1
protected open fun getClassContext(): Array<Class<Any!>!>!

inClass

Added in API level 1
Deprecated in API level 15
protected open fun inClass(name: String!): Boolean

Deprecated: Use #checkPermission instead.

inClassLoader

Added in API level 1
Deprecated in API level 15
protected open fun inClassLoader(): Boolean

Deprecated: Use #checkPermission instead.

Properties

inCheck

Added in API level 1
Deprecated in API level 15
protected var inCheck: Boolean

Deprecated: Use #checkPermission instead.