![JAR search and dependency download from the Maven repository](/logo.png)
nl.open.jwtdependency.org.bouncycastle.x509.CertPathReviewerException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java-jwt-nodependencies Show documentation
Show all versions of java-jwt-nodependencies Show documentation
This is a drop in replacement for the auth0 java-jwt library (see https://github.com/auth0/java-jwt). This jar makes sure there are no external dependencies (e.g. fasterXml, Apacha Commons) needed. This is useful when deploying to an application server (e.g. tomcat with Alfreso or Pega).
The newest version!
package org.bouncycastle.x509;
import java.security.cert.CertPath;
import org.bouncycastle.i18n.ErrorBundle;
import org.bouncycastle.i18n.LocalizedException;
public class CertPathReviewerException extends LocalizedException
{
private int index = -1;
private CertPath certPath = null;
public CertPathReviewerException(ErrorBundle errorMessage, Throwable throwable)
{
super(errorMessage, throwable);
}
public CertPathReviewerException(ErrorBundle errorMessage)
{
super(errorMessage);
}
public CertPathReviewerException(
ErrorBundle errorMessage,
Throwable throwable,
CertPath certPath,
int index)
{
super(errorMessage, throwable);
if (certPath == null || index == -1)
{
throw new IllegalArgumentException();
}
if (index < -1 || (certPath != null && index >= certPath.getCertificates().size()))
{
throw new IndexOutOfBoundsException();
}
this.certPath = certPath;
this.index = index;
}
public CertPathReviewerException(
ErrorBundle errorMessage,
CertPath certPath,
int index)
{
super(errorMessage);
if (certPath == null || index == -1)
{
throw new IllegalArgumentException();
}
if (index < -1 || (certPath != null && index >= certPath.getCertificates().size()))
{
throw new IndexOutOfBoundsException();
}
this.certPath = certPath;
this.index = index;
}
public CertPath getCertPath()
{
return certPath;
}
public int getIndex()
{
return index;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy