1 |
/* CertificateFactorySpi.java --- Certificate Factory Class |
/* CertificateFactorySpi.java --- Certificate Factory Class |
2 |
Copyright (C) 1999 Free Software Foundation, Inc. |
Copyright (C) 1999,2003 Free Software Foundation, Inc. |
3 |
|
|
4 |
This file is part of GNU Classpath. |
This file is part of GNU Classpath. |
5 |
|
|
37 |
|
|
38 |
|
|
39 |
package java.security.cert; |
package java.security.cert; |
40 |
|
|
41 |
import java.io.InputStream; |
import java.io.InputStream; |
42 |
|
|
43 |
import java.util.Collection; |
import java.util.Collection; |
44 |
|
import java.util.Iterator; |
45 |
|
import java.util.List; |
46 |
|
|
47 |
/** |
/** |
48 |
CertificateFactorySpi is the abstract class Service Provider |
CertificateFactorySpi is the abstract class Service Provider |
57 |
@since JDK 1.2 |
@since JDK 1.2 |
58 |
|
|
59 |
@author Mark Benvenuto |
@author Mark Benvenuto |
60 |
*/ |
*/ |
61 |
public abstract class CertificateFactorySpi |
public abstract class CertificateFactorySpi |
62 |
{ |
{ |
63 |
|
|
64 |
|
// Constructor. |
65 |
|
// ------------------------------------------------------------------------ |
66 |
|
|
67 |
/** |
/** |
68 |
Constructs a new CertificateFactorySpi |
* Constructs a new CertificateFactorySpi |
69 |
*/ |
*/ |
70 |
public CertificateFactorySpi() |
public CertificateFactorySpi() |
71 |
{} |
{} |
72 |
|
|
73 |
|
// Abstract methods. |
74 |
|
// ------------------------------------------------------------------------ |
75 |
|
|
76 |
/** |
/** |
77 |
Generates a Certificate based on the encoded data read |
Generates a Certificate based on the encoded data read |
78 |
from the InputStream. |
from the InputStream. |
87 |
For X.509 certificates, the certificate in inStream must be |
For X.509 certificates, the certificate in inStream must be |
88 |
DER encoded and supplied in binary or printable (Base64) |
DER encoded and supplied in binary or printable (Base64) |
89 |
encoding. If the certificate is in Base64 encoding, it must be |
encoding. If the certificate is in Base64 encoding, it must be |
90 |
bounded by -----BEGINCERTIFICATE-----, and |
bounded by -----BEGIN CERTIFICATE-----, and |
91 |
-----END CERTIFICATE-----. |
-----END CERTIFICATE-----. |
92 |
|
|
93 |
@param inStream an input stream containing the certificate data |
@param inStream an input stream containing the certificate data |
159 |
*/ |
*/ |
160 |
public abstract Collection engineGenerateCRLs(InputStream inStream) |
public abstract Collection engineGenerateCRLs(InputStream inStream) |
161 |
throws CRLException; |
throws CRLException; |
162 |
|
|
163 |
|
// 1.4 instance methods. |
164 |
|
// ------------------------------------------------------------------------ |
165 |
|
|
166 |
|
/** |
167 |
|
* Generate a {@link CertPath} and initialize it with data parsed from |
168 |
|
* the input stream. The default encoding of this factory is used. |
169 |
|
* |
170 |
|
* @param inStream The InputStream containing the CertPath data. |
171 |
|
* @return A CertPath initialized from the input stream data. |
172 |
|
* @throws CertificateException If an error occurs decoding the |
173 |
|
* CertPath. |
174 |
|
*/ |
175 |
|
public CertPath engineGenerateCertPath(InputStream inStream) |
176 |
|
throws CertificateException |
177 |
|
{ |
178 |
|
throw new UnsupportedOperationException("not implemented"); |
179 |
|
} |
180 |
|
|
181 |
|
/** |
182 |
|
* Generate a {@link CertPath} and initialize it with data parsed from |
183 |
|
* the input stream, using the specified encoding. |
184 |
|
* |
185 |
|
* @param inStream The InputStream containing the CertPath data. |
186 |
|
* @param encoding The encoding of the InputStream data. |
187 |
|
* @return A CertPath initialized from the input stream data. |
188 |
|
* @throws CertificateException If an error occurs decoding the |
189 |
|
* CertPath. |
190 |
|
*/ |
191 |
|
public CertPath engineGenerateCertPath(InputStream inStream, String encoding) |
192 |
|
throws CertificateException |
193 |
|
{ |
194 |
|
throw new UnsupportedOperationException("not implemented"); |
195 |
|
} |
196 |
|
|
197 |
|
/** |
198 |
|
* Generate a {@link CertPath} and initialize it with the certificates |
199 |
|
* in the {@link java.util.List} argument. |
200 |
|
* |
201 |
|
* @param certificates The list of certificates with which to create |
202 |
|
* the CertPath. |
203 |
|
* @return A CertPath initialized from the certificates. |
204 |
|
* @throws CertificateException If an error occurs generating the |
205 |
|
* CertPath. |
206 |
|
*/ |
207 |
|
public CertPath engineGenerateCertPath(List certificates) |
208 |
|
throws CertificateException |
209 |
|
{ |
210 |
|
throw new UnsupportedOperationException("not implemented"); |
211 |
|
} |
212 |
|
|
213 |
|
/** |
214 |
|
* Returns an Iterator of CertPath encodings supported by this |
215 |
|
* factory, with the default encoding first. The returned Iterator |
216 |
|
* cannot be modified. |
217 |
|
* |
218 |
|
* @return The Iterator of supported encodings. |
219 |
|
*/ |
220 |
|
public Iterator engineGetCertPathEncodings() |
221 |
|
{ |
222 |
|
throw new UnsupportedOperationException("not implemented"); |
223 |
|
} |
224 |
} |
} |
225 |
|
|