Android Guides | Samples

Java.Security.KeyFactory Class

KeyFactory is an engine class that can be used to translate between public and private key objects and convert keys between their external representation, that can be easily transported and their internal representation.

See Also: KeyFactory

Syntax

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

Remarks

KeyFactory is an engine class that can be used to translate between public and private key objects and convert keys between their external representation, that can be easily transported and their internal representation.

[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.KeyFactory are listed below.

See Also: Object

Protected Constructors

A constructor used when creating managed representations of JNI objects; called by the runtime.
Constructs a new instance of KeyFactory with the specified arguments.

Public Properties

[read-only]
AlgorithmString. Returns the name of the algorithm associated with this KeyFactory.
[read-only]
ProviderProvider. Returns the provider associated with this KeyFactory.

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

GeneratePrivate(IKeySpec) : IPrivateKey
Generates a instance of PrivateKey from the given key specification.
GeneratePublic(IKeySpec) : IPublicKey
Generates a instance of PublicKey from the given key specification.
static
GetInstance(String) : KeyFactory
Returns a new instance of KeyFactory that utilizes the specified algorithm.
static
GetInstance(String, Provider) : KeyFactory
Returns a new instance of KeyFactory that utilizes the specified algorithm from the specified provider.
static
GetInstance(String, String) : KeyFactory
Returns a new instance of KeyFactory that utilizes the specified algorithm from the specified provider.
GetKeySpec(IKey, Class) : Object
TranslateKey(IKey) : IKey
Translates the given key into a key from this key factory.