Stay organized with collections
Save and categorize content based on your preferences.
SocketPermission
class SocketPermission : Permission, Serializable
Legacy security code; do not use.
Summary
Public constructors
SocketPermission
SocketPermission(
host: String!,
action: String!)
Public methods
getActions
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 2025-02-10 UTC.
[null,null,["Last updated 2025-02-10 UTC."],[],[],null,["# SocketPermission\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nSocketPermission\n================\n\n```\nclass SocketPermission : Permission, Serializable\n```\n\n|---|---|--------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) |||\n| ↳ | [java.security.Permission](../security/Permission.html#) ||\n| | ↳ | [java.net.SocketPermission](#) |\n\nLegacy security code; do not use.\n\nSummary\n-------\n\n| Public constructors ||\n|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| [SocketPermission](#SocketPermission(kotlin.String,%20kotlin.String))`(`host:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!`, `action:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!`)` \u003cbr /\u003e |\n\n| Public methods ||\n|------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------|\n| [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)! | [getActions](#getActions())`()` \u003cbr /\u003e |\n| [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | [implies](#implies(java.security.Permission))`(`p:` `[Permission](../security/Permission.html#)!`)` \u003cbr /\u003e |\n\n| Inherited functions ||\n|---|---|\n| From class [Permission](../security/Permission.html#) |-----------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------| | [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [checkGuard](../security/Permission.html#checkGuard(kotlin.Any))`(`object:` `[Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)!`)` \u003cbr /\u003e | | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)! | [getName](../security/Permission.html#getName())`()` \u003cbr /\u003e | | [PermissionCollection](../security/PermissionCollection.html#)! | [newPermissionCollection](../security/Permission.html#newPermissionCollection())`()` \u003cbr /\u003e | ||\n\nPublic constructors\n-------------------\n\n### SocketPermission\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nSocketPermission(\n host: String!, \n action: String!)\n```\n\nPublic methods\n--------------\n\n### getActions\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nfun getActions(): String!\n``` \n\n### implies\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nfun implies(p: Permission!): Boolean\n```"]]