|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jvnet.hudson.crypto.CertificateUtil
public class CertificateUtil
Utility code to work around horrible Java Crypto API.
| Constructor Summary | |
|---|---|
CertificateUtil()
|
|
| Method Summary | |
|---|---|
static Set<TrustAnchor> |
getDefaultRootCAs()
Obtains the list of default root CAs installed in the JRE. |
static X509TrustManager |
getDefaultX509TrustManager()
Loads the system default X509TrustManager. |
static PKIXCertPathValidatorResult |
validatePath(List<X509Certificate> certs)
Validate a certificate chain. |
static PKIXCertPathValidatorResult |
validatePath(List<X509Certificate> certs,
Set<TrustAnchor> trustAnchors)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CertificateUtil()
| Method Detail |
|---|
public static Set<TrustAnchor> getDefaultRootCAs()
throws NoSuchAlgorithmException,
KeyStoreException
NoSuchAlgorithmException
KeyStoreException
public static X509TrustManager getDefaultX509TrustManager()
throws NoSuchAlgorithmException,
KeyStoreException
X509TrustManager.
NoSuchAlgorithmException
KeyStoreException
public static PKIXCertPathValidatorResult validatePath(List<X509Certificate> certs)
throws GeneralSecurityException
GeneralSecurityException
public static PKIXCertPathValidatorResult validatePath(List<X509Certificate> certs,
Set<TrustAnchor> trustAnchors)
throws GeneralSecurityException
GeneralSecurityException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||