PolicySpi.EngineGetPermissions Method
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
EngineGetPermissions(CodeSource) |
Return a PermissionCollection object containing the set of permissions granted to the specified CodeSource. |
EngineGetPermissions(ProtectionDomain) |
Return a PermissionCollection object containing the set of permissions granted to the specified ProtectionDomain. |
EngineGetPermissions(CodeSource)
Return a PermissionCollection object containing the set of permissions granted to the specified CodeSource.
[Android.Runtime.Register("engineGetPermissions", "(Ljava/security/CodeSource;)Ljava/security/PermissionCollection;", "GetEngineGetPermissions_Ljava_security_CodeSource_Handler")]
protected virtual Java.Security.PermissionCollection? EngineGetPermissions (Java.Security.CodeSource? codesource);
[<Android.Runtime.Register("engineGetPermissions", "(Ljava/security/CodeSource;)Ljava/security/PermissionCollection;", "GetEngineGetPermissions_Ljava_security_CodeSource_Handler")>]
abstract member EngineGetPermissions : Java.Security.CodeSource -> Java.Security.PermissionCollection
override this.EngineGetPermissions : Java.Security.CodeSource -> Java.Security.PermissionCollection
Parameters
- codesource
- CodeSource
the CodeSource to which the returned PermissionCollection has been granted.
Returns
a set of permissions granted to the specified CodeSource. If this operation is supported, the returned set of permissions must be a new mutable instance and it must support heterogeneous Permission types. If this operation is not supported, Policy.UNSUPPORTED_EMPTY_COLLECTION is returned.
- Attributes
Remarks
Return a PermissionCollection object containing the set of permissions granted to the specified CodeSource.
The default implementation of this method returns Policy.UNSUPPORTED_EMPTY_COLLECTION object. This method can be overridden if the policy implementation can return a set of permissions granted to a CodeSource.
Java documentation for java.security.PolicySpi.engineGetPermissions(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
EngineGetPermissions(ProtectionDomain)
Return a PermissionCollection object containing the set of permissions granted to the specified ProtectionDomain.
[Android.Runtime.Register("engineGetPermissions", "(Ljava/security/ProtectionDomain;)Ljava/security/PermissionCollection;", "GetEngineGetPermissions_Ljava_security_ProtectionDomain_Handler")]
protected virtual Java.Security.PermissionCollection? EngineGetPermissions (Java.Security.ProtectionDomain? domain);
[<Android.Runtime.Register("engineGetPermissions", "(Ljava/security/ProtectionDomain;)Ljava/security/PermissionCollection;", "GetEngineGetPermissions_Ljava_security_ProtectionDomain_Handler")>]
abstract member EngineGetPermissions : Java.Security.ProtectionDomain -> Java.Security.PermissionCollection
override this.EngineGetPermissions : Java.Security.ProtectionDomain -> Java.Security.PermissionCollection
Parameters
- domain
- ProtectionDomain
the ProtectionDomain to which the returned PermissionCollection has been granted.
Returns
a set of permissions granted to the specified ProtectionDomain. If this operation is supported, the returned set of permissions must be a new mutable instance and it must support heterogeneous Permission types. If this operation is not supported, Policy.UNSUPPORTED_EMPTY_COLLECTION is returned.
- Attributes
Remarks
Return a PermissionCollection object containing the set of permissions granted to the specified ProtectionDomain.
The default implementation of this method returns Policy.UNSUPPORTED_EMPTY_COLLECTION object. This method can be overridden if the policy implementation can return a set of permissions granted to a ProtectionDomain.
Java documentation for java.security.PolicySpi.engineGetPermissions(java.security.ProtectionDomain)
.
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.