CodeSource Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| CodeSource(URL, Certificate[]) |
Initializes a code source retaining its location; Android discards certificate data. |
| CodeSource(URL, CodeSigner[]) |
Initializes a code source retaining its location; Android discards code signer data. |
| CodeSource(IntPtr, JniHandleOwnership) |
A constructor used when creating managed representations of JNI objects; called by the runtime. |
CodeSource(URL, Certificate[])
Initializes a code source retaining its location; Android discards certificate data.
[Android.Runtime.Register(".ctor", "(Ljava/net/URL;[Ljava/security/cert/Certificate;)V", "")]
public CodeSource(Java.Net.URL? url, Java.Security.Cert.Certificate[]? certs);
[<Android.Runtime.Register(".ctor", "(Ljava/net/URL;[Ljava/security/cert/Certificate;)V", "")>]
new Java.Security.CodeSource : Java.Net.URL * Java.Security.Cert.Certificate[] -> Java.Security.CodeSource
Parameters
- url
- URL
The optional location URL to associate with this code source.
- certs
- Certificate[]
The certificates to provide; Android discards this array, which may be null.
- Attributes
Remarks
Android's stub implementation stores url but discards certs.
Android source implementation of java.security.CodeSource.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
Applies to
CodeSource(URL, CodeSigner[])
Initializes a code source retaining its location; Android discards code signer data.
[Android.Runtime.Register(".ctor", "(Ljava/net/URL;[Ljava/security/CodeSigner;)V", "")]
public CodeSource(Java.Net.URL? url, Java.Security.CodeSigner[]? signers);
[<Android.Runtime.Register(".ctor", "(Ljava/net/URL;[Ljava/security/CodeSigner;)V", "")>]
new Java.Security.CodeSource : Java.Net.URL * Java.Security.CodeSigner[] -> Java.Security.CodeSource
Parameters
- url
- URL
The optional location URL to associate with this code source.
- signers
- CodeSigner[]
The code signers to provide; Android discards this array, which may be null.
- Attributes
Remarks
Android's stub implementation stores url but discards signers.
Android source implementation of java.security.CodeSource.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
Applies to
CodeSource(IntPtr, JniHandleOwnership)
A constructor used when creating managed representations of JNI objects; called by the runtime.
protected CodeSource(IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Java.Security.CodeSource : nativeint * Android.Runtime.JniHandleOwnership -> Java.Security.CodeSource
Parameters
- transfer
- JniHandleOwnership
A JniHandleOwnershipindicating how to handle javaReference
Remarks
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.