KeyStore.PasswordProtection.ProtectionAlgorithm Property

Definition

Gets the name of the protection algorithm.

public virtual string ProtectionAlgorithm { [Android.Runtime.Register("getProtectionAlgorithm", "()Ljava/lang/String;", "GetGetProtectionAlgorithmHandler", ApiSince=26)] get; }
[<get: Android.Runtime.Register("getProtectionAlgorithm", "()Ljava/lang/String;", "GetGetProtectionAlgorithmHandler", ApiSince=26)>]
member this.ProtectionAlgorithm : string

Property Value

the algorithm name, or null if none was set

Attributes

Remarks

Gets the name of the protection algorithm. If none was set then the keystore provider will use its default protection algorithm. The name of the default protection algorithm for a given keystore type is set using the 'keystore.<type>.keyProtectionAlgorithm' security property. For example, the keystore.PKCS12.keyProtectionAlgorithm property stores the name of the default key protection algorithm used for PKCS12 keystores. If the security property is not set, an implementation-specific algorithm will be used.

Added in 1.8.

Java documentation for java.security.KeyStore.PasswordProtection.getProtectionAlgorithm().

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