Android Guides | Samples

Javax.Crypto.Cipher.GetMaxAllowedKeyLength Method

Returns the maximum key length for the specified transformation.

Syntax

[Android.Runtime.Register("getMaxAllowedKeyLength", "(Ljava/lang/String;)I", "")]
public static Int32 GetMaxAllowedKeyLength (String transformation)

Parameters

transformation
the transformation name.

Exceptions

TypeReason
NoSuchAlgorithmExceptionif no provider for the specified transformation can be found.
NullPointerExceptionif transformation is null.

Remarks

Returns the maximum key length for the specified transformation.

[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