CertPathValidatorException 构造函数

定义

重载

名称 说明
CertPathValidatorException()

CertPathValidatorException创建无详细信息消息。

CertPathValidatorException(Throwable)

创建一个 CertPathValidatorException 包装指定的可引发项。

CertPathValidatorException(String)

使用给定的详细信息消息创建一个 CertPathValidatorException

CertPathValidatorException(IntPtr, JniHandleOwnership)

创建 JNI 对象的托管表示形式时使用的构造函数;由运行时调用。

CertPathValidatorException(String, Throwable)

使用指定的详细信息消息和原因创建一个 CertPathValidatorException

CertPathValidatorException(String, Throwable, CertPath, Int32)

使用指定的详细信息消息、原因、认证路径和索引创建一个 CertPathValidatorException

CertPathValidatorException(String, Throwable, CertPath, Int32, CertPathValidatorException+IReason)

CertPathValidatorException创建无详细信息消息。

CertPathValidatorException()

CertPathValidatorException创建无详细信息消息。

[Android.Runtime.Register(".ctor", "()V", "")]
public CertPathValidatorException();
属性

注解

CertPathValidatorException创建无详细信息消息。

Java文档java.security.cert.CertPathValidatorException.CertPathValidatorException()

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于

CertPathValidatorException(Throwable)

创建一个 CertPathValidatorException 包装指定的可引发项。

[Android.Runtime.Register(".ctor", "(Ljava/lang/Throwable;)V", "")]
public CertPathValidatorException(Java.Lang.Throwable? cause);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/Throwable;)V", "")>]
new Java.Security.Cert.CertPathValidatorException : Java.Lang.Throwable -> Java.Security.Cert.CertPathValidatorException

参数

cause
Throwable

原因(此方法保存供以后检索 #getCause getCause() )。 (允许使用值 null ,并指示原因不存在或未知。

属性

注解

创建一个 CertPathValidatorException 包装指定的可引发项。 这允许将任何异常转换为 />,同时保留有关已包装异常的信息,这对于调试可能很有用。 详细信息消息设置为 (cause==null ? null : cause.toString()) (通常包含原因的类和详细信息消息)。

Java文档java.security.cert.CertPathValidatorException.CertPathValidatorException(java.lang.Throwable)

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于

CertPathValidatorException(String)

使用给定的详细信息消息创建一个 CertPathValidatorException

[Android.Runtime.Register(".ctor", "(Ljava/lang/String;)V", "")]
public CertPathValidatorException(string? msg);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;)V", "")>]
new Java.Security.Cert.CertPathValidatorException : string -> Java.Security.Cert.CertPathValidatorException

参数

msg
String

详细信息消息

属性

注解

使用给定的详细信息消息创建一个 CertPathValidatorException 。 详细信息消息描述 String 此特定异常。

Java文档java.security.cert.CertPathValidatorException.CertPathValidatorException(java.lang.String)

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于

CertPathValidatorException(IntPtr, JniHandleOwnership)

创建 JNI 对象的托管表示形式时使用的构造函数;由运行时调用。

protected CertPathValidatorException(IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Java.Security.Cert.CertPathValidatorException : nativeint * Android.Runtime.JniHandleOwnership -> Java.Security.Cert.CertPathValidatorException

参数

javaReference
IntPtr

nativeint

IntPtr一个包含Java本机接口 (JNI) 对象引用。

transfer
JniHandleOwnership

指示 JniHandleOwnership如何处理 javaReference

注解

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于

CertPathValidatorException(String, Throwable)

使用指定的详细信息消息和原因创建一个 CertPathValidatorException

[Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/Throwable;)V", "")]
public CertPathValidatorException(string? msg, Java.Lang.Throwable? cause);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/Throwable;)V", "")>]
new Java.Security.Cert.CertPathValidatorException : string * Java.Lang.Throwable -> Java.Security.Cert.CertPathValidatorException

参数

msg
String

详细信息消息

cause
Throwable

原因(此方法保存供以后检索 #getCause getCause() )。 (允许使用值 null ,并指示原因不存在或未知。

属性

注解

使用指定的详细信息消息和原因创建一个 CertPathValidatorException

Java文档java.security.cert.CertPathValidatorException.CertPathValidatorException(java.lang.String, java.lang.Throwable)

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于

CertPathValidatorException(String, Throwable, CertPath, Int32)

使用指定的详细信息消息、原因、认证路径和索引创建一个 CertPathValidatorException

[Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/Throwable;Ljava/security/cert/CertPath;I)V", "")]
public CertPathValidatorException(string? msg, Java.Lang.Throwable? cause, Java.Security.Cert.CertPath? certPath, int index);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/Throwable;Ljava/security/cert/CertPath;I)V", "")>]
new Java.Security.Cert.CertPathValidatorException : string * Java.Lang.Throwable * Java.Security.Cert.CertPath * int -> Java.Security.Cert.CertPathValidatorException

参数

msg
String

详细信息消息(或 null 无)

cause
Throwable

原因(或 null 无)

certPath
CertPath

遇到错误时正在验证的认证路径

index
Int32

导致错误的证书路径中的证书索引(或 -1(如果不适用)。 请注意,a CertPath 中的证书列表基于零。

属性

例外

if certPath is null and index is not -1.

如果不是并且索引未引用证书路径中的证书,则为 <a0/>。

注解

使用指定的详细信息消息、原因、认证路径和索引创建一个 CertPathValidatorException

Java文档java.security.cert.CertPathValidatorException.CertPathValidatorException(java.lang.String, java.lang.Throwable, java.security.cert.CertPath, int)

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于

CertPathValidatorException(String, Throwable, CertPath, Int32, CertPathValidatorException+IReason)

CertPathValidatorException创建无详细信息消息。

[Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/Throwable;Ljava/security/cert/CertPath;ILjava/security/cert/CertPathValidatorException$Reason;)V", "", ApiSince=24)]
public CertPathValidatorException(string? msg, Java.Lang.Throwable? cause, Java.Security.Cert.CertPath? certPath, int index, Java.Security.Cert.CertPathValidatorException.IReason? reason);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;Ljava/lang/Throwable;Ljava/security/cert/CertPath;ILjava/security/cert/CertPathValidatorException$Reason;)V", "", ApiSince=24)>]
new Java.Security.Cert.CertPathValidatorException : string * Java.Lang.Throwable * Java.Security.Cert.CertPath * int * Java.Security.Cert.CertPathValidatorException.IReason -> Java.Security.Cert.CertPathValidatorException

参数

msg
String
cause
Throwable
certPath
CertPath
index
Int32
属性

注解

Java文档java.security.cert.CertPathValidatorException.CertPathValidatorException()

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于