CertPathValidatorException 构造函数
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
| 名称 | 说明 |
|---|---|
| CertPathValidatorException() |
|
| CertPathValidatorException(Throwable) |
创建一个 |
| CertPathValidatorException(String) |
使用给定的详细信息消息创建一个 |
| CertPathValidatorException(IntPtr, JniHandleOwnership) |
创建 JNI 对象的托管表示形式时使用的构造函数;由运行时调用。 |
| CertPathValidatorException(String, Throwable) |
使用指定的详细信息消息和原因创建一个 |
| CertPathValidatorException(String, Throwable, CertPath, Int32) |
使用指定的详细信息消息、原因、认证路径和索引创建一个 |
| CertPathValidatorException(String, Throwable, CertPath, Int32, CertPathValidatorException+IReason) |
|
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
参数
- 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 。
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。
适用于
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.
如果不是
注解
使用指定的详细信息消息、原因、认证路径和索引创建一个 CertPathValidatorException 。
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。
适用于
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()。
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。