|
Bouncy Castle Cryptography 1.20 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.bouncycastle.jce.cert.CertificateFactory
Uses CertUtil
to actualiy load the SPI classes.
CertUtil
Constructor Summary | |
protected |
CertificateFactory(CertificateFactorySpi certFacSpi,
java.security.Provider provider,
java.lang.String type)
|
Method Summary | |
java.security.cert.Certificate |
generateCertificate(java.io.InputStream inStream)
|
java.util.Collection |
generateCertificates(java.io.InputStream inStream)
|
CertPath |
generateCertPath(java.io.InputStream inStream)
Generates a CertPath object and initializes it with
the data read from the InputStream inStream. |
CertPath |
generateCertPath(java.io.InputStream inStream,
java.lang.String encoding)
Generates a CertPath object and initializes it with
the data read from the InputStream inStream. |
CertPath |
generateCertPath(java.util.List certificates)
Generates a CertPath object and initializes it with
a List of Certificate s.The certificates supplied must be of a type supported by the CertificateFactory . |
java.security.cert.CRL |
generateCRL(java.io.InputStream inStream)
|
java.util.Collection |
generateCRLs(java.io.InputStream inStream)
|
java.util.Iterator |
getCertPathEncodings()
Returns an iteration of the CertPath encodings supported
by this certificate factory, with the default encoding first. |
static CertificateFactory |
getInstance(java.lang.String type)
|
static CertificateFactory |
getInstance(java.lang.String type,
java.lang.String provider)
|
java.security.Provider |
getProvider()
|
java.lang.String |
getType()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
protected CertificateFactory(CertificateFactorySpi certFacSpi, java.security.Provider provider, java.lang.String type)
Method Detail |
public final java.security.cert.CRL generateCRL(java.io.InputStream inStream) throws java.security.cert.CRLException
java.security.cert.CRLException
public final java.util.Collection generateCRLs(java.io.InputStream inStream) throws java.security.cert.CRLException
java.security.cert.CRLException
public final java.security.cert.Certificate generateCertificate(java.io.InputStream inStream) throws java.security.cert.CertificateException
java.security.cert.CertificateException
public final java.util.Collection generateCertificates(java.io.InputStream inStream) throws java.security.cert.CertificateException
java.security.cert.CertificateException
public final java.util.Iterator getCertPathEncodings()
CertPath
encodings supported
by this certificate factory, with the default encoding first. See
Appendix A in the
Java Certification Path API Programmer's Guide for information about
standard encoding names and their formats.Iterator
via its
remove
method result in an
UnsupportedOperationException
.
Iterator
over the names of the supported
CertPath
encodings (as String
s)public final CertPath generateCertPath(java.io.InputStream inStream) throws java.security.cert.CertificateException
CertPath
object and initializes it with
the data read from the InputStream
inStream. The data
is assumed to be in the default encoding. The name of the default
encoding is the first element of the Iterator
returned by
the getCertPathEncodings
method.
inStream
- an InputStream
containing the data
CertPath
initialized with the data from the
InputStream
java.security.cert.CertificateException
- if an exception occurs while decodingpublic final CertPath generateCertPath(java.io.InputStream inStream, java.lang.String encoding) throws java.security.cert.CertificateException
CertPath
object and initializes it with
the data read from the InputStream
inStream. The data
is assumed to be in the specified encoding. See Appendix A in the
Java Certification Path API Programmer's Guide
for information about standard encoding names and their formats.
inStream
- an InputStream
containing the dataencoding
- the encoding used for the data
CertPath
initialized with the data from the
InputStream
java.security.cert.CertificateException
- if an exception occurs while decoding or
the encoding requested is not supportedpublic final CertPath generateCertPath(java.util.List certificates) throws java.security.cert.CertificateException
CertPath
object and initializes it with
a List
of Certificate
s.CertificateFactory
. They will be copied out of the supplied
List
object.
certificates
- a List
of Certificate
s
CertPath
initialized with the supplied list of
certificates
java.security.cert.CertificateException
- if an exception occurspublic static final CertificateFactory getInstance(java.lang.String type) throws java.security.cert.CertificateException
java.security.cert.CertificateException
public static final CertificateFactory getInstance(java.lang.String type, java.lang.String provider) throws java.security.cert.CertificateException, java.security.NoSuchProviderException
java.security.cert.CertificateException
java.security.NoSuchProviderException
public final java.security.Provider getProvider()
public final java.lang.String getType()
|
Bouncy Castle Cryptography 1.20 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |