lightbulb_outline Help shape the future of the Google Play Console, Android Studio, and Firebase. Start survey
added in API level 23

KeyNotYetValidException

public class KeyNotYetValidException
extends InvalidKeyException

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


Indicates that a cryptographic operation failed because the employed key's validity start date is in the future.

Summary

Public constructors

KeyNotYetValidException()

Constructs a new KeyNotYetValidException without detail message and cause.

KeyNotYetValidException(String message)

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

KeyNotYetValidException(String message, Throwable cause)

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

Inherited methods

Public constructors

KeyNotYetValidException

added in API level 23
public KeyNotYetValidException ()

Constructs a new KeyNotYetValidException without detail message and cause.

KeyNotYetValidException

added in API level 23
public KeyNotYetValidException (String message)

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

Parameters
message String

KeyNotYetValidException

added in API level 23
public KeyNotYetValidException (String message, 
                Throwable cause)

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

Parameters
message String

cause Throwable