Most visited

Recently visited

Added in API level 1

InvalidKeyException

public class InvalidKeyException
extends KeyException

java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Exception
       ↳ java.security.GeneralSecurityException
         ↳ java.security.KeyException
           ↳ java.security.InvalidKeyException
Known Direct Subclasses


这是无效Keys的例外(无效编码,长度错误,未初始化等)。

Summary

Public constructors

InvalidKeyException()

构造一个InvalidKeyException,没有详细信息。

InvalidKeyException(String msg)

用指定的详细信息构造一个InvalidKeyException。

InvalidKeyException(String message, Throwable cause)

用指定的详细信息和原因创建一个 InvalidKeyException

InvalidKeyException(Throwable cause)

创建 InvalidKeyException与指定的原因和 (cause==null ? null : cause.toString())详细消息(它通常包含的 cause类和详细消息)。

Inherited methods

From class java.lang.Throwable
From class java.lang.Object

Public constructors

InvalidKeyException

Added in API level 1
InvalidKeyException ()

构造一个InvalidKeyException,没有详细信息。 详细消息是描述此特定异常的字符串。

InvalidKeyException

Added in API level 1
InvalidKeyException (String msg)

用指定的详细信息构造一个InvalidKeyException。 详细消息是描述此特定异常的字符串。

Parameters
msg String: the detail message.

InvalidKeyException

Added in API level 1
InvalidKeyException (String message, 
                Throwable cause)

用指定的详细信息和原因创建一个 InvalidKeyException

Parameters
message String: the detail message (which is saved for later retrieval by the getMessage() method).
cause Throwable: the cause (which is saved for later retrieval by the getCause() method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)

InvalidKeyException

Added in API level 1
InvalidKeyException (Throwable cause)

创建 InvalidKeyException与指定的原因和 (cause==null ? null : cause.toString())详细消息(它通常包含的 cause类和详细消息)。

Parameters
cause Throwable: the cause (which is saved for later retrieval by the getCause() method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.)

Hooray!