Android Guides | Samples

Java.Security.PolicySpi Class

Represents the Service Provider Interface (SPI) for java.security.

See Also: PolicySpi

Syntax

[Android.Runtime.Register("java/security/PolicySpi", DoNotGenerateAcw=true)]
public abstract class PolicySpi : Object

Remarks

Represents the Service Provider Interface (SPI) for java.security.Policy class.

If there is any class that wants to provide a Policy implementation, all abstract methods in this SPI should be implemented.

The detailed implementations should offer a public constructor, in which a Policy.Paramters implementation acts as an input parameter.If the Policy.Paramters input cannot by understood by the constructor, an IllegalArgumentException will be thrown.

[Android Documentation]

Requirements

Namespace: Java.Security
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 9

The members of Java.Security.PolicySpi are listed below.

See Also: Object

Public Constructors

Protected Constructors

A constructor used when creating managed representations of JNI objects; called by the runtime.

Protected Properties

[read-only]
override
ThresholdClassIntPtr. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.
[read-only]
override
ThresholdTypeType. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Protected Methods

EngineGetPermissions(CodeSource) : PermissionCollection
Answers a PermissionCollection object containing the set of permissions granted to the specified CodeSource.
EngineGetPermissions(ProtectionDomain) : PermissionCollection
Answers a PermissionCollection object containing the set of permissions granted to the specified ProtectionDomain.
abstract
EngineImplies(ProtectionDomain, Permission) : Boolean
Answers if the policy has granted a Permission to a ProtectionDomain.
EngineRefresh()
Refreshes/reloads the policy configuration.