|
IcedTea-Web NetX |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.jnlp.tools.KeyTool
public class KeyTool
This tool manages the user's trusted certificates
Constructor Summary | |
---|---|
KeyTool()
|
Method Summary | |
---|---|
boolean |
checkCacertsForCertificate(java.security.cert.Certificate c)
Checks if a given certificate is part of the user's cacerts keystore. |
boolean |
establishCertChain(java.security.cert.Certificate userCert,
java.security.cert.Certificate certToVerify)
Establishes a certificate chain (using trusted certificates in the keystore), starting with the user certificate and ending at a self-signed certificate found in the keystore. |
boolean |
importCert(java.security.cert.Certificate cert)
Adds a trusted certificate to the user's keystore. |
boolean |
importCert(java.io.File file)
Adds a trusted certificate to the user's keystore. |
boolean |
isTrusted(java.security.cert.Certificate cert)
Returns true if the given certificate is trusted, false otherwise. |
static void |
main(java.lang.String[] args)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public KeyTool() throws java.lang.Exception
java.lang.Exception
Method Detail |
---|
public boolean importCert(java.io.File file) throws java.lang.Exception
java.lang.Exception
public boolean importCert(java.security.cert.Certificate cert) throws java.lang.Exception
java.lang.Exception
public boolean isTrusted(java.security.cert.Certificate cert) throws java.lang.Exception
java.lang.Exception
public boolean checkCacertsForCertificate(java.security.cert.Certificate c) throws java.lang.Exception
c
- the certificate to check
java.lang.Exception
public boolean establishCertChain(java.security.cert.Certificate userCert, java.security.cert.Certificate certToVerify) throws java.lang.Exception
userCert
- the user certificate of the aliascertToVerify
- the single certificate provided in the reply
java.lang.Exception
public static void main(java.lang.String[] args) throws java.lang.Exception
java.lang.Exception
|
IcedTea-Web NetX |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |