Udostępnij za pośrednictwem


CertPathValidatorException Constructors

Definition

Overloads

CertPathValidatorException()

Creates a CertPathValidatorException with no detail message.

CertPathValidatorException(Throwable)

Creates a CertPathValidatorException that wraps the specified throwable.

CertPathValidatorException(String)

Creates a CertPathValidatorException with the given detail message.

CertPathValidatorException(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

CertPathValidatorException(String, Throwable)

Creates a CertPathValidatorException with the specified detail message and cause.

CertPathValidatorException(String, Throwable, CertPath, Int32)

Creates a CertPathValidatorException with the specified detail message, cause, certification path, and index.

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

Creates a CertPathValidatorException with no detail message.

CertPathValidatorException()

Creates a CertPathValidatorException with no detail message.

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

Remarks

Creates a CertPathValidatorException with no detail message.

Java documentation for java.security.cert.CertPathValidatorException.CertPathValidatorException().

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

CertPathValidatorException(Throwable)

Creates a CertPathValidatorException that wraps the specified throwable.

[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

Parameters

cause
Throwable

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

Attributes

Remarks

Creates a CertPathValidatorException that wraps the specified throwable. This allows any exception to be converted into a CertPathValidatorException, while retaining information about the wrapped exception, which may be useful for debugging. The detail message is set to (cause==null ? null : cause.toString()) (which typically contains the class and detail message of cause).

Java documentation for java.security.cert.CertPathValidatorException.CertPathValidatorException(java.lang.Throwable).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

CertPathValidatorException(String)

Creates a CertPathValidatorException with the given detail message.

[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

Parameters

msg
String

the detail message

Attributes

Remarks

Creates a CertPathValidatorException with the given detail message. A detail message is a String that describes this particular exception.

Java documentation for java.security.cert.CertPathValidatorException.CertPathValidatorException(java.lang.String).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

CertPathValidatorException(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

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

Parameters

javaReference
IntPtr

nativeint

A IntPtrcontaining a Java Native Interface (JNI) object reference.

transfer
JniHandleOwnership

A JniHandleOwnershipindicating how to handle javaReference

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

CertPathValidatorException(String, Throwable)

Creates a CertPathValidatorException with the specified detail message and cause.

[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

Parameters

msg
String

the detail message

cause
Throwable

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

Attributes

Remarks

Creates a CertPathValidatorException with the specified detail message and cause.

Java documentation for java.security.cert.CertPathValidatorException.CertPathValidatorException(java.lang.String, java.lang.Throwable).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

CertPathValidatorException(String, Throwable, CertPath, Int32)

Creates a CertPathValidatorException with the specified detail message, cause, certification path, and index.

[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

Parameters

msg
String

the detail message (or null if none)

cause
Throwable

the cause (or null if none)

certPath
CertPath

the certification path that was in the process of being validated when the error was encountered

index
Int32

the index of the certificate in the certification path that caused the error (or -1 if not applicable). Note that the list of certificates in a CertPath is zero based.

Attributes

Exceptions

if certPath is null and index is not -1.

if certPath is not null and index is not referencing an certificate in the certification path.

Remarks

Creates a CertPathValidatorException with the specified detail message, cause, certification path, and index.

Java documentation for java.security.cert.CertPathValidatorException.CertPathValidatorException(java.lang.String, java.lang.Throwable, java.security.cert.CertPath, int).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

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

Creates a CertPathValidatorException with no detail message.

[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

Parameters

msg
String
cause
Throwable
certPath
CertPath
index
Int32
Attributes

Remarks

Java documentation for java.security.cert.CertPathValidatorException.CertPathValidatorException().

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to