org.bouncycastle.jce.cert
Class CertificateFactorySpi
java.lang.Object
|
+--java.security.cert.CertificateFactorySpi
|
+--org.bouncycastle.jce.cert.CertificateFactorySpi
- Direct Known Subclasses:
- JDKX509CertificateFactory
- public abstract class CertificateFactorySpi
- extends java.security.cert.CertificateFactorySpi
Method Summary |
abstract CertPath |
engineGenerateCertPath(java.io.InputStream inStream)
Generates a CertPath object and initializes it with
the data read from the InputStream inStream. |
abstract CertPath |
engineGenerateCertPath(java.io.InputStream inStream,
java.lang.String encoding)
Generates a CertPath object and initializes it with
the data read from the InputStream inStream. |
abstract CertPath |
engineGenerateCertPath(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 . |
abstract java.util.Iterator |
engineGetCertPathEncodings()
Returns an iteration of the CertPath encodings supported
by this certificate factory, with the default encoding first. |
Methods inherited from class java.security.cert.CertificateFactorySpi |
engineGenerateCertificate, engineGenerateCertificates, engineGenerateCRL, engineGenerateCRLs |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CertificateFactorySpi
public CertificateFactorySpi()
engineGetCertPathEncodings
public abstract java.util.Iterator engineGetCertPathEncodings()
- Returns an iteration of the
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.
Attempts to modify the returned Iterator
via its
remove
method result in an
UnsupportedOperationException
.
This method was added to version 1.4 of the Java 2 Platform
Standard Edition. In order to maintain backwards compatibility with
existing service providers, this method cannot be abstract
and by default throws an UnsupportedOperationException
.
- Returns:
- an
Iterator
over the names of the supported
CertPath
encodings (as String
s) - Throws:
UnsupportedOperationException
- if the method is not supported
engineGenerateCertPath
public abstract CertPath engineGenerateCertPath(java.io.InputStream inStream)
throws java.security.cert.CertificateException
- Generates a
CertPath
object and initializes it with
the data read from the InputStream
inStream. The data
is assumed to be in the default encoding.
- Parameters:
inStream
- an InputStream
containing the data- Returns:
- a
CertPath
initialized with the data from the
InputStream
- Throws:
java.security.cert.CertificateException
- if an exception occurs while decoding
engineGenerateCertPath
public abstract CertPath engineGenerateCertPath(java.io.InputStream inStream,
java.lang.String encoding)
throws java.security.cert.CertificateException
- Generates a
CertPath
object and initializes it with
the data read from the InputStream
inStream. The data
is assumed to be in the specified encoding.
This method was added to version 1.4 of the Java 2 Platform
Standard Edition. In order to maintain backwards compatibility with
existing service providers, this method cannot be abstract
and by default throws an UnsupportedOperationException
.
- Parameters:
inStream
- an InputStream
containing the dataencoding
- the encoding used for the data- Returns:
- a
CertPath
initialized with the data from the
InputStream
- Throws:
java.security.cert.CertificateException
- if an exception occurs while decoding or
the encoding requested is not supportedUnsupportedOperationException
- if the method is not supported
engineGenerateCertPath
public abstract CertPath engineGenerateCertPath(java.util.List certificates)
throws java.security.cert.CertificateException
- 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
. They will be copied out of the supplied
List
object.
This method was added to version 1.4 of the Java 2 Platform
Standard Edition. In order to maintain backwards compatibility with
existing service providers, this method cannot be abstract
and by default throws an UnsupportedOperationException
.
- Parameters:
certificates
- a List
of Certificate
s- Returns:
- a
CertPath
initialized with the supplied list of
certificates - Throws:
java.security.cert.CertificateException
- if an exception occursUnsupportedOperationException
- if the method is not supported