org.bouncycastle.jcajce.provider.asymmetric.x509.X509CertificateInternal Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bcprov-debug-jdk14 Show documentation
Show all versions of bcprov-debug-jdk14 Show documentation
The Bouncy Castle Crypto package is a Java implementation of cryptographic algorithms. This jar contains JCE provider and lightweight API for the Bouncy Castle Cryptography APIs for JDK 1.4.
package org.bouncycastle.jcajce.provider.asymmetric.x509;
import java.security.cert.CertificateEncodingException;
import org.bouncycastle.asn1.x509.BasicConstraints;
import org.bouncycastle.jcajce.util.JcaJceHelper;
class X509CertificateInternal extends X509CertificateImpl
{
private final byte[] encoding;
private final CertificateEncodingException exception;
X509CertificateInternal(JcaJceHelper bcHelper, org.bouncycastle.asn1.x509.Certificate c,
BasicConstraints basicConstraints, boolean[] keyUsage, String sigAlgName, byte[] sigAlgParams, byte[] encoding,
CertificateEncodingException exception)
{
super(bcHelper, c, basicConstraints, keyUsage, sigAlgName, sigAlgParams);
this.encoding = encoding;
this.exception = exception;
}
public byte[] getEncoded() throws CertificateEncodingException
{
if (null != exception)
{
throw exception;
}
if (null == encoding)
{
throw new CertificateEncodingException();
}
return encoding;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy