Android Guides | Samples

Javax.Crypto.SecretKeyFactory Class

The public API for SecretKeyFactory implementations.

See Also: SecretKeyFactory

Syntax

[Android.Runtime.Register("javax/crypto/SecretKeyFactory", DoNotGenerateAcw=true)]
public class SecretKeyFactory : Object

Remarks

The public API for SecretKeyFactory implementations.

Secret key factories provide the following functionality:

Which key specifications are supported by the SecretKeyFactory.GenerateSecret(IKeySpec) and SecretKeyFactory.GetKeySpec(ISecretKey,Class) is provider dependent.

[Android Documentation]

Requirements

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

The members of Javax.Crypto.SecretKeyFactory are listed below.

See Also: Object

Protected Constructors

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

Public Properties

[read-only]
AlgorithmString. Returns the name of the secret key algorithm.
[read-only]
ProviderProvider. Returns the provider for this SecretKeyFactory instance.

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

GenerateSecret(IKeySpec) : ISecretKey
Generate a secret key from the specified key specification.
static
GetInstance(String) : SecretKeyFactory
Creates a new SecretKeyFactory instance for the specified key algorithm.
static
GetInstance(String, Provider) : SecretKeyFactory
Creates a new SecretKeyFactory instance for the specified key algorithm from the specified provider.
static
GetInstance(String, String) : SecretKeyFactory
Creates a new SecretKeyFactory instance for the specified key algorithm from the specified provider.
GetKeySpec(ISecretKey, Class) : IKeySpec
Returns the key specification of the specified secret key.
TranslateKey(ISecretKey) : ISecretKey
Translates the specified secret key into an instance of the corresponding key from the provider of this key factory.