|
Enhydra-Oyster 2.1-7 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.enhydra.oyster.util.PFXUtils
PFXUtils class has static methods which are dealing with .pfx, or .p12 files. The file (of this types) presents storage for keeping certificate chain and private key. Information from this files are being transported through programs via instance of the Java class KeyStore.
Constructor Summary | |
PFXUtils()
|
Method Summary | |
static java.security.cert.X509Certificate[] |
getAllX509Certificate(java.security.KeyStore ks0)
Returns all X509 Certificates stored in .pfx, or .p12 files (KeyStore). |
static java.security.cert.X509Certificate[] |
getCertificateChain(java.security.KeyStore ks0)
Returns all X509 Certificates stored in .pfx, or .p12 files (KeyStore). |
static java.security.cert.X509Certificate |
getPFXOwnerX509Certificate(java.security.KeyStore ks0)
Returns the owner's Certificate from his .pfx or .p12 file (KeyStore) |
static java.security.PrivateKey |
getPrivateKey(java.security.KeyStore ks0)
Returns the Private key of the certificate's owner from .pfx or .p12 file (pkcs12 format) |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public PFXUtils()
Method Detail |
public static java.security.cert.X509Certificate getPFXOwnerX509Certificate(java.security.KeyStore ks0) throws SMIMEException
ks0
- container for information from .pfx or .p12 file
SMIMEException
- if problem with extracting certificate
chain from .pfx or .p12 file or with aliases in pfx or p12 file arrises.
Also, it can be caused by non SMIMEException which is KeyStoreException.public static java.security.PrivateKey getPrivateKey(java.security.KeyStore ks0) throws SMIMEException
ks0
- container for information from .pfx or .p12 file
SMIMEException
- caused by non SMIMEException which can be one of
the following: KeyStoreException, UnrecoverableKeyException or
NoSuchAlgorithmException.public static java.security.cert.X509Certificate[] getAllX509Certificate(java.security.KeyStore ks0) throws SMIMEException
ks0
- container for information from .pfx or .p12 file
SMIMEException
- if problem with extracting certificate
chain from .pfx or .p12 file or with aliases in pfx or p12 file arrises.
Also, it can be caused by non SMIMEException which is KeyStoreException.public static java.security.cert.X509Certificate[] getCertificateChain(java.security.KeyStore ks0) throws SMIMEException
ks0
- container for information from .pfx or .p12 file
SMIMEException
- caused by non SMIMEException which is
KeyStoreException.
|
Enhydra-Oyster 2.1-7 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |