SecureClassLoader Class
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.
This class extends ClassLoader with additional support for defining classes with an associated code source and permissions which are retrieved by the system policy by default.
[Android.Runtime.Register("java/security/SecureClassLoader", DoNotGenerateAcw=true)]
public class SecureClassLoader : Java.Lang.ClassLoader
[<Android.Runtime.Register("java/security/SecureClassLoader", DoNotGenerateAcw=true)>]
type SecureClassLoader = class
inherit ClassLoader
- Inheritance
- Derived
- Attributes
Remarks
This class extends ClassLoader with additional support for defining classes with an associated code source and permissions which are retrieved by the system policy by default.
Java documentation for java.security.SecureClassLoader
.
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.
Constructors
SecureClassLoader() |
Creates a new SecureClassLoader using the default parent class loader for delegation. |
SecureClassLoader(ClassLoader) |
Creates a new SecureClassLoader using the specified parent class loader for delegation. |
SecureClassLoader(IntPtr, JniHandleOwnership) |
A constructor used when creating managed representations of JNI objects; called by the runtime. |
Properties
Class |
Returns the runtime class of this |
Handle |
The handle to the underlying Android instance. (Inherited from Object) |
JniIdentityHashCode | (Inherited from Object) |
JniPeerMembers | |
Parent |
Returns the parent class loader for delegation. (Inherited from ClassLoader) |
PeerReference | (Inherited from Object) |
ThresholdClass |
This API supports the Mono for Android infrastructure and is not intended to be used directly from your code. |
ThresholdType |
This API supports the Mono for Android infrastructure and is not intended to be used directly from your code. |
Methods
ClearAssertionStatus() |
Sets the default assertion status for this class loader to
|
Clone() |
Creates and returns a copy of this object. (Inherited from Object) |
DefineClass(Byte[], Int32, Int32) |
Obsolete.
Converts an array of bytes into an instance of class |
DefineClass(String, Byte[], Int32, Int32) |
Converts an array of bytes into an instance of class |
DefineClass(String, Byte[], Int32, Int32, CodeSource) |
Converts an array of bytes into an instance of class Class, with an optional CodeSource. |
DefineClass(String, Byte[], Int32, Int32, ProtectionDomain) |
Converts an array of bytes into an instance of class |
DefineClass(String, ByteBuffer, CodeSource) |
Converts a |
DefineClass(String, ByteBuffer, ProtectionDomain) |
Converts a |
DefinePackage(String, String, String, String, String, String, String, URL) |
Defines a package by name in this |
Dispose() | (Inherited from Object) |
Dispose(Boolean) | (Inherited from Object) |
Equals(Object) |
Indicates whether some other object is "equal to" this one. (Inherited from Object) |
FindClass(String) |
Finds the class with the specified binary name. (Inherited from ClassLoader) |
FindLibrary(String) |
Returns the absolute path name of a native library. (Inherited from ClassLoader) |
FindLoadedClass(String) |
Returns the class with the given binary name if this loader has been recorded by the Java virtual machine as an initiating loader of a class with that binary name. (Inherited from ClassLoader) |
FindResource(String) |
Finds the resource with the given name. (Inherited from ClassLoader) |
FindResources(String) |
Returns an enumeration of |
FindSystemClass(String) |
Finds a class with the specified binary name, loading it if necessary. (Inherited from ClassLoader) |
GetHashCode() |
Returns a hash code value for the object. (Inherited from Object) |
GetPackage(String) |
Returns a |
GetPackages() |
Returns all of the |
GetPermissions(CodeSource) |
Returns the permissions for the given CodeSource object. |
GetResource(String) |
Finds the resource with the given name. (Inherited from ClassLoader) |
GetResourceAsStream(String) |
Returns an input stream for reading the specified resource. (Inherited from ClassLoader) |
GetResources(String) |
Finds all the resources with the given name. (Inherited from ClassLoader) |
JavaFinalize() |
Called by the garbage collector on an object when garbage collection determines that there are no more references to the object. (Inherited from Object) |
LoadClass(String) |
Loads the class with the specified binary name. (Inherited from ClassLoader) |
LoadClass(String, Boolean) |
Loads the class with the specified binary name. (Inherited from ClassLoader) |
LoadClassAsync(String) | (Inherited from ClassLoader) |
LoadClassAsync(String, Boolean) | (Inherited from ClassLoader) |
Notify() |
Wakes up a single thread that is waiting on this object's monitor. (Inherited from Object) |
NotifyAll() |
Wakes up all threads that are waiting on this object's monitor. (Inherited from Object) |
ResolveClass(Class) |
Links the specified class. (Inherited from ClassLoader) |
SetClassAssertionStatus(String, Boolean) |
Sets the desired assertion status for the named top-level class in this class loader and any nested classes contained therein. (Inherited from ClassLoader) |
SetDefaultAssertionStatus(Boolean) |
Sets the default assertion status for this class loader. (Inherited from ClassLoader) |
SetHandle(IntPtr, JniHandleOwnership) |
Sets the Handle property. (Inherited from Object) |
SetPackageAssertionStatus(String, Boolean) |
Sets the package default assertion status for the named package. (Inherited from ClassLoader) |
SetSigners(Class, Object[]) |
Sets the signers of a class. (Inherited from ClassLoader) |
ToArray<T>() | (Inherited from Object) |
ToString() |
Returns a string representation of the object. (Inherited from Object) |
UnregisterFromRuntime() | (Inherited from Object) |
Wait() |
Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>. (Inherited from Object) |
Wait(Int64) |
Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed. (Inherited from Object) |
Wait(Int64, Int32) |
Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed. (Inherited from Object) |
Explicit Interface Implementations
IJavaPeerable.Disposed() | (Inherited from Object) |
IJavaPeerable.DisposeUnlessReferenced() | (Inherited from Object) |
IJavaPeerable.Finalized() | (Inherited from Object) |
IJavaPeerable.JniManagedPeerState | (Inherited from Object) |
IJavaPeerable.SetJniIdentityHashCode(Int32) | (Inherited from Object) |
IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates) | (Inherited from Object) |
IJavaPeerable.SetPeerReference(JniObjectReference) | (Inherited from Object) |
Extension Methods
JavaCast<TResult>(IJavaObject) |
Performs an Android runtime-checked type conversion. |
JavaCast<TResult>(IJavaObject) | |
GetJniTypeName(IJavaPeerable) |