Class PkixCertPathValidatorException
- Namespace
- Org.BouncyCastle.Pkix
- Assembly
- BouncyCastle.Cryptography.dll
[Serializable]
public class PkixCertPathValidatorException : GeneralSecurityException, ISerializable
- Inheritance
-
PkixCertPathValidatorException
- Implements
- Inherited Members
Constructors
PkixCertPathValidatorException()
public PkixCertPathValidatorException()
PkixCertPathValidatorException(SerializationInfo, StreamingContext)
protected PkixCertPathValidatorException(SerializationInfo info, StreamingContext context)
Parameters
infoSerializationInfocontextStreamingContext
PkixCertPathValidatorException(string)
public PkixCertPathValidatorException(string message)
Parameters
messagestring
PkixCertPathValidatorException(string, Exception)
public PkixCertPathValidatorException(string message, Exception innerException)
Parameters
PkixCertPathValidatorException(string, Exception, int)
Creates a
PkixCertPathValidatorException with the specified
detail message, cause, certification path, and index.
public PkixCertPathValidatorException(string message, Exception innerException, int index)
Parameters
messagestringthe detail message (or
if none)nullinnerExceptionExceptionthe cause (or
if none)nullindexintthe index of the certificate in the certification path that
Fields
m_index
protected readonly int m_index
Field Value
Properties
Index
eturns the index of the certificate in the certification path that caused the exception to be thrown.
public int Index { get; }
Property Value
- int
The index that has been set, or -1 if none has been set.
Remarks
Note that the list of certificates in a PkixCertPath is zero based. If no index has been set, -1 is returned.
Methods
GetObjectData(SerializationInfo, StreamingContext)
When overridden in a derived class, sets the SerializationInfo with information about the exception.
public override void GetObjectData(SerializationInfo info, StreamingContext context)
Parameters
infoSerializationInfoThe SerializationInfo that holds the serialized object data about the exception being thrown.
contextStreamingContextThe StreamingContext that contains contextual information about the source or destination.
Exceptions
- ArgumentNullException
The
infoparameter is a null reference (Nothingin Visual Basic).