|
Bouncy Castle Cryptography 1.22 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.security.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 | |
Certificate |
generateCertificate(java.io.InputStream inStream)
|
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(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 . |
CRL |
generateCRL(java.io.InputStream inStream)
|
Collection |
generateCRLs(java.io.InputStream inStream)
|
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 CRL generateCRL(java.io.InputStream inStream) throws CRLException
CRLException
public final Collection generateCRLs(java.io.InputStream inStream) throws CRLException
CRLException
public final Certificate generateCertificate(java.io.InputStream inStream) throws CertificateException
CertificateException
public final Collection generateCertificates(java.io.InputStream inStream) throws CertificateException
CertificateException
public final 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 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
CertificateException
- if an exception occurs while decodingpublic final CertPath generateCertPath(java.io.InputStream inStream, java.lang.String encoding) throws 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
CertificateException
- if an exception occurs while decoding or
the encoding requested is not supportedpublic final CertPath generateCertPath(List certificates) throws 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
CertificateException
- if an exception occurspublic static final CertificateFactory getInstance(java.lang.String type) throws CertificateException
CertificateException
public static final CertificateFactory getInstance(java.lang.String type, java.lang.String provider) throws CertificateException, java.security.NoSuchProviderException
CertificateException
java.security.NoSuchProviderException
public final java.security.Provider getProvider()
public final java.lang.String getType()
|
Bouncy Castle Cryptography 1.22 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |