Stay organized with collections
Save and categorize content based on your preferences.
CodeSource
open class CodeSource : Serializable
Legacy security code; do not use.
Summary
Public constructors
Public methods
getLocation
fun getLocation(): URL!
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.
[[["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 2025-02-10 UTC."],[],[],null,["# CodeSource\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nCodeSource\n==========\n\n```\nopen class CodeSource : Serializable\n```\n\n|---|-------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) ||\n| ↳ | [java.security.CodeSource](#) |\n\nLegacy security code; do not use.\n\nSummary\n-------\n\n| Public constructors ||\n|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| [CodeSource](#CodeSource(java.net.URL,%20kotlin.Array))`(`url:` `[URL](../net/URL.html#)!`, `certs:` `[Array](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-array/index.html)\u003c[Certificate](/reference/kotlin/java/security/cert/Certificate)!\u003e!`)` \u003cbr /\u003e |\n| [CodeSource](#CodeSource(java.net.URL,%20kotlin.Array))`(`url:` `[URL](../net/URL.html#)!`, `signers:` `[Array](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-array/index.html)\u003c[CodeSigner](/reference/kotlin/java/security/CodeSigner)!\u003e!`)` \u003cbr /\u003e |\n\n| Public methods ||\n|-----------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------|\n| [Array](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-array/index.html)\\\u003c[Certificate](/reference/kotlin/java/security/cert/Certificate)!\\\u003e! | [getCertificates](#getCertificates())`()` \u003cbr /\u003e |\n| [Array](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-array/index.html)\\\u003c[CodeSigner](/reference/kotlin/java/security/CodeSigner)!\\\u003e! | [getCodeSigners](#getCodeSigners())`()` \u003cbr /\u003e |\n| [URL](../net/URL.html#)! | [getLocation](#getLocation())`()` \u003cbr /\u003e |\n| open [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | [implies](#implies(java.security.CodeSource))`(`codesource:` `[CodeSource](#)!`)` \u003cbr /\u003e |\n\nPublic constructors\n-------------------\n\n### CodeSource\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nCodeSource(\n url: URL!, \n certs: Array\u003cCertificate!\u003e!)\n``` \n\n### CodeSource\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nCodeSource(\n url: URL!, \n signers: Array\u003cCodeSigner!\u003e!)\n```\n\nPublic methods\n--------------\n\n### getCertificates\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nfun getCertificates(): Array\u003cCertificate!\u003e!\n``` \n\n### getCodeSigners\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nfun getCodeSigners(): Array\u003cCodeSigner!\u003e!\n``` \n\n### getLocation\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nfun getLocation(): URL!\n``` \n\n### implies\n\nAdded in [API level 1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nopen fun implies(codesource: CodeSource!): Boolean\n```"]]