Android Guides | Samples

Java.Security.Security Class

Security is the central class in the Java Security API.

See Also: Security

Syntax

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

Remarks

Security is the central class in the Java Security API. It manages the list of security Provider that have been installed into this runtime environment.

[Android Documentation]

Requirements

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

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

See Also: Object

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.

Public Methods

static
AddProvider(Provider) : Int32
Adds the given provider to the collection of providers at the next available position.
static
GetAlgorithmProperty(String, String) : String
Returns value for the specified algorithm with the specified name.
static
GetAlgorithms(String) : ICollection<string>
Returns a Set of all registered algorithms for the specified cryptographic service.
static
GetProperty(String) : String
Returns the value of the security property named by the argument.
static
GetProvider(String) : Provider
Returns the Provider with the specified name.
static
GetProviders() : Provider[]
Returns an array containing all installed providers.
static
GetProviders(IDictionary<string, string>) : Provider[]
static
GetProviders(String) : Provider[]
Returns the array of providers which meet the user supplied string filter.
static
InsertProviderAt(Provider, Int32) : Int32
Insert the given Provider at the specified position.
static
RemoveProvider(String)
Removes the Provider with the specified name form the collection of providers.
static
SetProperty(String, String)
Sets the value of the specified security property.