|
IcedTea-Web NetX |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.jnlp.security.CertificateUtils
public class CertificateUtils
Common utilities to manipulate certificates. Provides methods to add Certificates to a KeyStores, check if certificates already exist in a KeyStore and printing certificates.
Constructor Summary | |
---|---|
CertificateUtils()
|
Method Summary | |
---|---|
static void |
addToKeyStore(java.io.File file,
java.security.KeyStore ks)
Adds the X509Certficate in the file to the KeyStore. |
static void |
addToKeyStore(java.security.cert.X509Certificate cert,
java.security.KeyStore ks)
Adds an X509Certificate to the KeyStore. |
static void |
dump(java.security.cert.Certificate cert,
java.io.PrintStream out)
Writes the certificate in base64 encoded from to the print stream. |
static boolean |
inKeyStores(java.security.cert.X509Certificate c,
java.security.KeyStore[] keyStores)
Checks whether an X509Certificate is already in one of the keystores |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CertificateUtils()
Method Detail |
---|
public static final void addToKeyStore(java.io.File file, java.security.KeyStore ks) throws java.security.cert.CertificateException, java.io.IOException, java.security.KeyStoreException
java.security.cert.CertificateException
java.io.IOException
java.security.KeyStoreException
public static final void addToKeyStore(java.security.cert.X509Certificate cert, java.security.KeyStore ks) throws java.security.KeyStoreException
java.security.KeyStoreException
public static final boolean inKeyStores(java.security.cert.X509Certificate c, java.security.KeyStore[] keyStores)
c
- the certificatekeyStores
- the KeyStores to check in
public static void dump(java.security.cert.Certificate cert, java.io.PrintStream out) throws java.io.IOException, java.security.cert.CertificateException
java.io.IOException
java.security.cert.CertificateException
|
IcedTea-Web NetX |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |