Stay organized with collections
Save and categorize content based on your preferences.
SecurityManager
open class 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
SecurityManager
SecurityManager()
Public methods
checkAccept
open fun checkAccept(
host: String!,
port: Int
): Unit
checkAccess
open fun checkAccess(t: Thread!): Unit
checkAwtEventQueueAccess
open fun checkAwtEventQueueAccess(): Unit
checkConnect
open fun checkConnect(
host: String!,
port: Int
): Unit
checkConnect
open fun checkConnect(
host: String!,
port: Int,
context: Any!
): Unit
checkCreateClassLoader
open fun checkCreateClassLoader(): Unit
checkDelete
open fun checkDelete(file: String!): Unit
checkExit
open fun checkExit(status: Int): Unit
checkListen
open fun checkListen(port: Int): Unit
checkMemberAccess
open fun checkMemberAccess(
clazz: Class<*>!,
which: Int
): Unit
Deprecated: this method is deprecated.
checkPackageAccess
open fun checkPackageAccess(pkg: String!): Unit
checkPackageDefinition
open fun checkPackageDefinition(pkg: String!): Unit
checkPrintJobAccess
open fun checkPrintJobAccess(): Unit
checkPropertiesAccess
open fun checkPropertiesAccess(): Unit
checkPropertyAccess
open fun checkPropertyAccess(key: String!): Unit
checkRead
open fun checkRead(
file: String!,
context: Any!
): Unit
checkSecurityAccess
open fun checkSecurityAccess(target: String!): Unit
checkSetFactory
open fun checkSetFactory(): Unit
checkSystemClipboardAccess
open fun checkSystemClipboardAccess(): Unit
checkTopLevelWindow
open fun checkTopLevelWindow(window: Any!): Boolean
Deprecated: this method is deprecated.
checkWrite
open fun checkWrite(file: String!): Unit
getInCheck
open fun getInCheck(): Boolean
Deprecated: Use #checkPermission instead.
getSecurityContext
open fun getSecurityContext(): Any!
getThreadGroup
open fun getThreadGroup(): ThreadGroup!
Returns the current thread's thread group.
Protected methods
classDepth
protected open fun classDepth(name: String!): Int
Deprecated: Use #checkPermission instead.
classLoaderDepth
protected open fun classLoaderDepth(): Int
Deprecated: Use #checkPermission instead.
currentClassLoader
protected open fun currentClassLoader(): ClassLoader!
Deprecated: Use #checkPermission instead.
currentLoadedClass
protected open fun currentLoadedClass(): Class<*>!
Deprecated: Use #checkPermission instead.
getClassContext
protected open fun getClassContext(): Array<Class<Any!>!>!
inClass
protected open fun inClass(name: String!): Boolean
Deprecated: Use #checkPermission instead.
inClassLoader
protected open fun inClassLoader(): Boolean
Deprecated: Use #checkPermission instead.
Properties
inCheck
protected var inCheck: Boolean
Deprecated: Use #checkPermission instead.
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 2022-06-08 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"Missing the information I need"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"Too complicated / too many steps"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"Out of date"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"Samples / code issue"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
{"lastModified": "Last updated 2022-06-08 UTC."}
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2022-06-08 UTC."]]