Top Description Inners Fields Constructors Methods
org.bouncycastle.cert.jcajce

public Class JcaX509CRLConverter

extends Object
Class Inheritance
Imports
java.io.ByteArrayInputStream, .IOException, java.security.NoSuchProviderException, .Provider, java.security.cert.CRLException, .CertificateException, .CertificateFactory, .X509CRL, org.bouncycastle.cert.X509CRLHolder

Class for converting an X509CRLHolder into a corresponding X509CRL object tied to a particular JCA provider.

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Field Summary

Modifier and TypeField and Description
private CertHelper

Constructor Summary

AccessConstructor and Description
public
JcaX509CRLConverter()

Base constructor, configure with the default provider.

Method Summary

Modifier and TypeMethod and Description
public X509CRL

Returns:

a X509CRL object
getCRL
(X509CRLHolder
the holder to be converted
crlHolder
)

Use the configured converter to produce a X509CRL object from a X509CRLHolder object.

public JcaX509CRLConverter

Returns:

the converter instance.
setProvider
(Provider
the provider to use.
provider
)

Set the provider to use from a Provider object.

public JcaX509CRLConverter

Returns:

the converter instance.
setProvider
(String
name of the provider to use.
providerName
)

Set the provider to use by name.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

helperback to summary
private CertHelper helper

Constructor Detail

JcaX509CRLConverterback to summary
public JcaX509CRLConverter()

Base constructor, configure with the default provider.

Method Detail

getCRLback to summary
public X509CRL getCRL(X509CRLHolder crlHolder) throws CRLException

Use the configured converter to produce a X509CRL object from a X509CRLHolder object.

Parameters
crlHolder:X509CRLHolder

the holder to be converted

Returns:X509CRL

a X509CRL object

Exceptions
CRLException:
if the conversion is unable to be made.
setProviderback to summary
public JcaX509CRLConverter setProvider(Provider provider)

Set the provider to use from a Provider object.

Parameters
provider:Provider

the provider to use.

Returns:JcaX509CRLConverter

the converter instance.

setProviderback to summary
public JcaX509CRLConverter setProvider(String providerName)

Set the provider to use by name.

Parameters
providerName:String

name of the provider to use.

Returns:JcaX509CRLConverter

the converter instance.

org.bouncycastle.cert.jcajce back to summary

private Class JcaX509CRLConverter.ExCRLException

extends CRLException
Class Inheritance

Field Summary

Modifier and TypeField and Description
private Throwable

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Throwable
getCause()

Overrides java.lang.Throwable.getCause.

Returns the cause of this throwable or null if the cause is nonexistent or unknown.

Field Detail

causeback to summary
private Throwable cause

Hides java.lang.Throwable.cause.

Constructor Detail

ExCRLExceptionback to summary
public ExCRLException(String msg, Throwable cause)

Method Detail

getCauseback to summary
public Throwable getCause()

Overrides java.lang.Throwable.getCause.

Doc from java.lang.Throwable.getCause.

Returns the cause of this throwable or null if the cause is nonexistent or unknown. (The cause is the throwable that caused this throwable to get thrown.)

This implementation returns the cause that was supplied via one of the constructors requiring a Throwable, or that was set after creation with the initCause(Throwable) method. While it is typically unnecessary to override this method, a subclass can override it to return a cause set by some other means. This is appropriate for a "legacy chained throwable" that predates the addition of chained exceptions to Throwable. Note that it is not necessary to override any of the PrintStackTrace methods, all of which invoke the getCause method to determine the cause of a throwable.

Returns:Throwable

the cause of this throwable or null if the cause is nonexistent or unknown.