|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.identity.federation.bindings.util.cert.KeyStoreUtil
public class KeyStoreUtil
Utility to handle Java Keystore
| Constructor Summary | |
|---|---|
KeyStoreUtil()
|
|
| Method Summary | |
|---|---|
static java.security.KeyPair |
generateKeyPair(java.lang.String algo)
Generate a Key Pair |
static java.security.KeyStore |
getKeyStore(java.io.InputStream ksStream,
char[] storePass)
Get the Key Store Note: This method wants the InputStream to be not null. |
static java.security.KeyStore |
getKeyStore(java.lang.String fileURL,
char[] storePass)
Get the Keystore given the url to the keystore file as a string |
static java.security.KeyStore |
getKeyStore(java.net.URL url,
char[] storePass)
Get the Keystore given the URL to the keystore |
static java.security.PublicKey |
getPublicKey(java.security.KeyStore ks,
java.lang.String alias,
char[] password)
Get the Public Key from the keystore |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public KeyStoreUtil()
| Method Detail |
|---|
public static java.security.KeyStore getKeyStore(java.lang.String fileURL,
char[] storePass)
throws java.security.GeneralSecurityException,
java.io.IOException
fileURL - storePass -
java.security.GeneralSecurityException
java.io.IOException
public static java.security.KeyStore getKeyStore(java.net.URL url,
char[] storePass)
throws java.security.GeneralSecurityException,
java.io.IOException
url - storePass -
java.security.GeneralSecurityException
java.io.IOException
public static java.security.KeyStore getKeyStore(java.io.InputStream ksStream,
char[] storePass)
throws java.security.GeneralSecurityException,
java.io.IOException
ksStream - storePass -
java.security.GeneralSecurityException
java.io.IOException
java.lang.IllegalArgumentException - if ksStream is null
public static java.security.KeyPair generateKeyPair(java.lang.String algo)
throws java.lang.Exception
algo - (RSA, DSA etc)
java.lang.Exception
public static java.security.PublicKey getPublicKey(java.security.KeyStore ks,
java.lang.String alias,
char[] password)
throws java.lang.Exception
ks - alias - password -
java.lang.Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||