|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.jguard.ext.authentication.certificates.CertUtils
public class CertUtils
Utility class to handle X509 certificates.
| Constructor Summary | |
|---|---|
CertUtils()
|
|
| Method Summary | |
|---|---|
static java.security.cert.X509Certificate |
getCertFromFile(java.lang.String path)
Read a certificate from the specified filepath. |
static java.util.Set |
getCertsFromDirectory(java.lang.String directoryPath)
return all the certificates contained in the directory path. |
static java.security.KeyStore |
getKeyStore(java.lang.String filePath,
java.lang.String keyStorePassword,
java.lang.String keyStoreType)
|
static java.util.Set |
getTrustedAnchorsFromDirectory(java.lang.String directoryPath)
return a Set of TrustAnchors (without nameConstraints) which comes from a directory path. |
static java.util.Set |
getTrustedAnchorsFromDirectory(java.lang.String directoryPath,
byte[] nameConstraints)
return a Set of TrustAnchors (without nameConstraints) which comes from a directory path. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CertUtils()
| Method Detail |
|---|
public static java.security.cert.X509Certificate getCertFromFile(java.lang.String path)
path -
public static java.util.Set getCertsFromDirectory(java.lang.String directoryPath)
directoryPath -
public static java.util.Set getTrustedAnchorsFromDirectory(java.lang.String directoryPath)
directoryPath -
public static java.util.Set getTrustedAnchorsFromDirectory(java.lang.String directoryPath,
byte[] nameConstraints)
directoryPath - nameConstraints - constraints applied to all the TrustAnchor
public static java.security.KeyStore getKeyStore(java.lang.String filePath,
java.lang.String keyStorePassword,
java.lang.String keyStoreType)
throws java.security.KeyStoreException,
java.security.NoSuchAlgorithmException,
java.security.cert.CertificateException,
java.io.IOException
java.security.KeyStoreException
java.security.NoSuchAlgorithmException
java.security.cert.CertificateException
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||