Sdílet prostřednictvím


CipherSpi.EngineGetKeySize(IKey) Method

Definition

Returns the key size of the given key object in bits.

[Android.Runtime.Register("engineGetKeySize", "(Ljava/security/Key;)I", "GetEngineGetKeySize_Ljava_security_Key_Handler")]
protected virtual int EngineGetKeySize (Java.Security.IKey? key);
[<Android.Runtime.Register("engineGetKeySize", "(Ljava/security/Key;)I", "GetEngineGetKeySize_Ljava_security_Key_Handler")>]
abstract member EngineGetKeySize : Java.Security.IKey -> int
override this.EngineGetKeySize : Java.Security.IKey -> int

Parameters

key
IKey

the key object.

Returns

the key size of the given key object.

Attributes

Exceptions

if the size of the key cannot be determined by this implementation.

Remarks

Returns the key size of the given key object in bits.

This concrete method has been added to this previously-defined abstract class. It throws an UnsupportedOperationException if it is not overridden by the provider.

Java documentation for javax.crypto.CipherSpi.engineGetKeySize(java.security.Key).

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.

Applies to