Udostępnij za pośrednictwem


SecureClassLoader.GetPermissions(CodeSource) Method

Definition

Returns the permissions for the given CodeSource object.

[Android.Runtime.Register("getPermissions", "(Ljava/security/CodeSource;)Ljava/security/PermissionCollection;", "GetGetPermissions_Ljava_security_CodeSource_Handler")]
protected virtual Java.Security.PermissionCollection? GetPermissions (Java.Security.CodeSource? codesource);
[<Android.Runtime.Register("getPermissions", "(Ljava/security/CodeSource;)Ljava/security/PermissionCollection;", "GetGetPermissions_Ljava_security_CodeSource_Handler")>]
abstract member GetPermissions : Java.Security.CodeSource -> Java.Security.PermissionCollection
override this.GetPermissions : Java.Security.CodeSource -> Java.Security.PermissionCollection

Parameters

codesource
CodeSource

the codesource.

Returns

the permissions granted to the codesource.

Attributes

Remarks

Returns the permissions for the given CodeSource object.

This method is invoked by the defineClass method which takes a CodeSource as an argument when it is constructing the ProtectionDomain for the class being defined.

Java documentation for java.security.SecureClassLoader.getPermissions(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