|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectice.ssl.ServerCertificateList
This class represent a list of server certificates. A server certificate
is a certificate for which the private key is unknown.
It provides facilities to store the list in a secure way, and
add and remove certificates from the list.
This class can be instanciated directly or using the static method
restoreList.
For instanciating a list from a previously saved list do:
ServerCertificateList scl = ServerCertificateList.restoreList(in);For creating a new empty list do:
ServerCertificateList scl = new ServerCertificateList();
X509CertificateFactory,
X509Certificate| Constructor Summary | |
ServerCertificateList()
Creates an empty list. |
|
| Method Summary | |
void |
addCertificate(X509Certificate cert)
Adds a new certificate in the list. |
Object |
clone()
Clones this certificate list |
Enumeration |
getList()
Obtains the list of certificates stored in this object. |
void |
removeCertificate(X509Certificate cert)
Removes a certificate from the list. |
static ServerCertificateList |
restoreList(InputStream in)
Retrieves a previously saved certificate list. |
static ServerCertificateList |
restoreListFromPEM(InputStream in)
|
void |
save(OutputStream out)
Saves this certificate list. |
void |
saveAsPEM(OutputStream out)
|
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ServerCertificateList()
| Method Detail |
public void addCertificate(X509Certificate cert)
public void removeCertificate(X509Certificate cert)
public Enumeration getList()
public static ServerCertificateList restoreList(InputStream in)
throws IOException
IOException
public void save(OutputStream out)
throws IOException
IOExceptionpublic Object clone()
public static ServerCertificateList restoreListFromPEM(InputStream in)
throws IOException
IOException
public void saveAsPEM(OutputStream out)
throws IOException
IOException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||