KeyGenParameterSpec Class

Definition

[Android.Runtime.Register("android/security/keystore/KeyGenParameterSpec", ApiSince=23, DoNotGenerateAcw=true)]
public sealed class KeyGenParameterSpec : Java.Lang.Object, IDisposable, Java.Interop.IJavaPeerable, Java.Security.Spec.IAlgorithmParameterSpec
[<Android.Runtime.Register("android/security/keystore/KeyGenParameterSpec", ApiSince=23, DoNotGenerateAcw=true)>]
type KeyGenParameterSpec = class
    inherit Object
    interface IAlgorithmParameterSpec
    interface IJavaObject
    interface IDisposable
    interface IJavaPeerable
Inheritance
KeyGenParameterSpec
Attributes
Implements

Remarks

Android platform documentation

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.

Properties

AlgorithmParameterSpec

Returns the key algorithm-specific AlgorithmParameterSpec that will be used for creation of the key or null if algorithm-specific defaults should be used.

AttestKeyAlias

Returns the alias of the attestation key that will be used to sign the attestation certificate of the generated key.

CertificateNotAfter

Returns the end date to be used on the X.

CertificateNotBefore

Returns the start date to be used on the X.

CertificateSerialNumber

Returns the serial number to be used on the X.

CertificateSubject

Returns the subject distinguished name to be used on the X.

Class

Returns the runtime class of this Object.

(Inherited from Object)
Handle

The handle to the underlying Android instance.

(Inherited from Object)
IsDevicePropertiesAttestationIncluded

Returns true if attestation for the base device properties (Build#BRAND, Build#DEVICE, Build#MANUFACTURER, Build#MODEL, Build#PRODUCT) was requested to be added in the attestation certificate for the generated key.

IsDigestsSpecified

Returns true if the set of digest algorithms with which the key can be used has been specified.

IsInvalidatedByBiometricEnrollment

Returns true if the key is irreversibly invalidated when a new biometric is enrolled or all enrolled biometrics are removed.

IsRandomizedEncryptionRequired

Returns true if encryption using this key must be sufficiently randomized to produce different ciphertexts for the same plaintext every time.

IsStrongBoxBacked

Returns true if the key is protected by a Strongbox security chip.

IsUnlockedDeviceRequired

Returns true if the screen must be unlocked for this key to be used for decryption or signing.

IsUserAuthenticationRequired

Returns true if the key is authorized to be used only if the user has been authenticated.

IsUserAuthenticationValidWhileOnBody

Returns true if the key will remain authorized only until the device is removed from the user's body, up to the validity duration.

IsUserConfirmationRequired

Returns true if the key is authorized to be used only for messages confirmed by the user.

IsUserPresenceRequired

Returns true if the key is authorized to be used only if a test of user presence has been performed between the Signature.initSign() and Signature.sign() calls.

JniIdentityHashCode (Inherited from Object)
JniPeerMembers
KeySize

Returns the requested key size.

KeystoreAlias

Returns the alias that will be used in the java.security.KeyStore in conjunction with the AndroidKeyStore.

KeyValidityForConsumptionEnd

Returns the time instant after which the key is no longer valid for decryption and verification or null if not restricted.

KeyValidityForOriginationEnd

Returns the time instant after which the key is no longer valid for encryption and signing or null if not restricted.

KeyValidityStart

Returns the time instant before which the key is not yet valid or null if not restricted.

MaxUsageCount

Returns the maximum number of times the limited use key is allowed to be used or KeyProperties#UNRESTRICTED_USAGE_COUNT if there’s no restriction on the number of times the key can be used.

PeerReference (Inherited from Object)
Purposes

Returns the set of purposes (e.

ThresholdClass

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

(Inherited from Object)
ThresholdType

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

(Inherited from Object)
UserAuthenticationType

Gets the modes of authentication that can authorize use of this key.

UserAuthenticationValidityDurationSeconds

Gets the duration of time (seconds) for which this key is authorized to be used after the user is successfully authenticated.

Methods

Clone()

Creates and returns a copy of this object.

(Inherited from Object)
Dispose() (Inherited from Object)
Dispose(Boolean) (Inherited from Object)
Equals(Object)

Indicates whether some other object is "equal to" this one.

(Inherited from Object)
GetAttestationChallenge()

Returns the attestation challenge value that will be placed in attestation certificate for this key pair.

GetBlockModes()

Gets the set of block modes (e.

GetDigests()

Returns the set of digest algorithms (e.

GetEncryptionPaddings()

Returns the set of padding schemes (e.

GetHashCode()

Returns a hash code value for the object.

(Inherited from Object)
GetSignaturePaddings()

Gets the set of padding schemes (e.

JavaFinalize()

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.

(Inherited from Object)
Notify()

Wakes up a single thread that is waiting on this object's monitor.

(Inherited from Object)
NotifyAll()

Wakes up all threads that are waiting on this object's monitor.

(Inherited from Object)
SetHandle(IntPtr, JniHandleOwnership)

Sets the Handle property.

(Inherited from Object)
ToArray<T>() (Inherited from Object)
ToString()

Returns a string representation of the object.

(Inherited from Object)
UnregisterFromRuntime() (Inherited from Object)
Wait()

Causes the current thread to wait until another thread invokes the java.lang.Object#notify() method or the java.lang.Object#notifyAll() method for this object.

(Inherited from Object)
Wait(Int64)

Causes the current thread to wait until either another thread invokes the java.lang.Object#notify() method or the java.lang.Object#notifyAll() method for this object, or a specified amount of time has elapsed.

(Inherited from Object)
Wait(Int64, Int32)

Causes the current thread to wait until another thread invokes the java.lang.Object#notify() method or the java.lang.Object#notifyAll() method for this object, or some other thread interrupts the current thread, or a certain amount of real time has elapsed.

(Inherited from Object)

Explicit Interface Implementations

IJavaPeerable.Disposed() (Inherited from Object)
IJavaPeerable.DisposeUnlessReferenced() (Inherited from Object)
IJavaPeerable.Finalized() (Inherited from Object)
IJavaPeerable.JniManagedPeerState (Inherited from Object)
IJavaPeerable.SetJniIdentityHashCode(Int32) (Inherited from Object)
IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates) (Inherited from Object)
IJavaPeerable.SetPeerReference(JniObjectReference) (Inherited from Object)

Extension Methods

JavaCast<TResult>(IJavaObject)

Performs an Android runtime-checked type conversion.

JavaCast<TResult>(IJavaObject)
GetJniTypeName(IJavaPeerable)

Applies to