Android APIs
public class

KeyPermanentlyInvalidatedException

extends InvalidKeyException
java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Exception
       ↳ java.security.GeneralSecurityException
         ↳ java.security.KeyException
           ↳ java.security.InvalidKeyException
             ↳ android.security.keystore.KeyPermanentlyInvalidatedException

Class Overview

Indicates that the key can no longer be used because it has been permanently invalidated.

This only occurs for keys which are authorized to be used only if the user has been authenticated. Such keys are permanently and irreversibly invalidated once the secure lock screen is disabled (i.e., reconfigured to None, Swipe or other mode which does not authenticate the user) or when the secure lock screen is forcibly reset (e.g., by Device Admin). Additionally, keys configured to require user authentication to take place for every of the keys, are also permanently invalidated once a new fingerprint is enrolled or once no more fingerprints are enrolled.

Summary

Public Constructors
KeyPermanentlyInvalidatedException()
Constructs a new KeyPermanentlyInvalidatedException without detail message and cause.
KeyPermanentlyInvalidatedException(String message)
Constructs a new KeyPermanentlyInvalidatedException with the provided detail message and no cause.
KeyPermanentlyInvalidatedException(String message, Throwable cause)
Constructs a new KeyPermanentlyInvalidatedException with the provided detail message and cause.
[Expand]
Inherited Methods
From class java.lang.Throwable
From class java.lang.Object

Public Constructors

public KeyPermanentlyInvalidatedException ()

Added in API level 23

Constructs a new KeyPermanentlyInvalidatedException without detail message and cause.

public KeyPermanentlyInvalidatedException (String message)

Added in API level 23

Constructs a new KeyPermanentlyInvalidatedException with the provided detail message and no cause.

public KeyPermanentlyInvalidatedException (String message, Throwable cause)

Added in API level 23

Constructs a new KeyPermanentlyInvalidatedException with the provided detail message and cause.