|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbe.SIRAPRISE.util.MyKeyStore
public abstract class MyKeyStore
Field Summary | |
---|---|
static java.lang.String |
RESOURCETPYE
|
static java.lang.String |
SUFFIX
|
Method Summary | |
---|---|
static java.security.KeyStore |
getKeyStore(java.lang.Class<?> clazz)
Gets a KeyStore object of the default keystore type. |
static java.security.KeyStore |
getKeyStore(java.lang.Class<?> clazz,
char[] storePassword)
Gets a KeyStore object of the default keystore type. |
static java.security.KeyStore |
getKeyStore(java.lang.Class<?> clazz,
java.lang.String keyStoreType)
Gets a KeyStore object of the given keystore type. |
static java.security.KeyStore |
getKeyStore(java.lang.Class<?> clazz,
java.lang.String keyStoreType,
char[] storePassword)
Gets a KeyStore object of the given keystore type. |
static java.security.KeyStore |
getKeyStore(java.lang.String user)
Gets a keystore object for a keystore of the default keystore type for the named user. |
static java.security.KeyStore |
getKeyStore(java.lang.String user,
char[] storePassword)
Gets a keystore object for a keystore of the named keystore type for the named user. |
static java.security.KeyStore |
getKeyStore(java.lang.String user,
java.lang.String keyStoreType)
Gets a keystore object for a keystore of the named keystore type for the named user. |
static java.security.KeyStore |
getKeyStore(java.lang.String user,
java.lang.String keyStoreType,
char[] storePassword)
Gets a keystore object for a keystore of the named keystore type for the named user. |
static java.io.InputStream |
getKeyStoreInputStream(java.lang.Class<?> clazz)
Gets an InputStream for reading a resource corresponding to the given class. |
static java.io.InputStream |
getKeyStoreInputStream(java.lang.String user)
Gets an InputStream for reading a keystore resource corresponding to the named user. |
static java.security.KeyStore |
getPackageKeyStore(java.lang.Class<?> clazz)
Gets a KeyStore object of the default keystore type. |
static java.security.KeyStore |
getPackageKeyStore(java.lang.Class<?> clazz,
char[] storePassword)
Gets a KeyStore object of the default keystore type. |
static java.security.KeyStore |
getPackageKeyStore(java.lang.Class<?> clazz,
java.lang.String keyStoreType)
Gets a KeyStore object of the given keystore type. |
static java.security.KeyStore |
getPackageKeyStore(java.lang.Class<?> clazz,
java.lang.String keyStoreType,
char[] storePassword)
Gets a KeyStore object of the given keystore type. |
static java.io.InputStream |
getPackageKeyStoreInputStream(java.lang.Class<?> clazz)
Gets an InputStream for reading a resource corresponding to the package of the given class. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String RESOURCETPYE
public static final java.lang.String SUFFIX
Method Detail |
---|
public static java.security.KeyStore getKeyStore(java.lang.Class<?> clazz) throws java.security.KeyStoreException, NotFoundException, java.io.IOException, java.security.NoSuchAlgorithmException, java.security.cert.CertificateException
clazz
- The class of the object for which a keystore is to be found. The name of the resource that will be searched for is the full classname, followed by the SUFFIX constant.
java.security.KeyStoreException
NotFoundException
java.io.IOException
java.security.NoSuchAlgorithmException
java.security.cert.CertificateException
public static java.security.KeyStore getKeyStore(java.lang.Class<?> clazz, char[] storePassword) throws java.security.KeyStoreException, NotFoundException, java.io.IOException, java.security.NoSuchAlgorithmException, java.security.cert.CertificateException
clazz
- The class of the object for which a keystore is to be found. The name of the resource that will be searched for is the full classname, followed by the SUFFIX constant.storePassword
- The password for loading the Store
java.security.KeyStoreException
NotFoundException
java.io.IOException
java.security.NoSuchAlgorithmException
java.security.cert.CertificateException
public static java.security.KeyStore getKeyStore(java.lang.Class<?> clazz, java.lang.String keyStoreType) throws java.security.KeyStoreException, NotFoundException, java.io.IOException, java.security.NoSuchAlgorithmException, java.security.cert.CertificateException
clazz
- The class of the object for which a keystore is to be found. The name of the resource that will be searched for is the full classname, followed by the SUFFIX constant.keyStoreType
- The name of the KeyStore type to be returned to the caller
java.security.KeyStoreException
NotFoundException
java.io.IOException
java.security.NoSuchAlgorithmException
java.security.cert.CertificateException
public static java.security.KeyStore getKeyStore(java.lang.Class<?> clazz, java.lang.String keyStoreType, char[] storePassword) throws java.security.KeyStoreException, NotFoundException, java.io.IOException, java.security.NoSuchAlgorithmException, java.security.cert.CertificateException
clazz
- The class of the object for which a keystore is to be found. The name of the resource that will be searched for is the full classname, followed by the SUFFIX constant.keyStoreType
- The name of the KeyStore type to be returned to the callerstorePassword
- The password for loading the store
java.security.KeyStoreException
NotFoundException
java.io.IOException
java.security.NoSuchAlgorithmException
java.security.cert.CertificateException
public static java.security.KeyStore getKeyStore(java.lang.String user) throws java.security.KeyStoreException, java.security.NoSuchAlgorithmException, java.security.cert.CertificateException, java.io.IOException, NotFoundException
user
- The user whose keystore is to be obtained
java.security.KeyStoreException
java.io.IOException
java.security.cert.CertificateException
java.security.NoSuchAlgorithmException
NotFoundException
public static java.security.KeyStore getKeyStore(java.lang.String user, char[] storePassword) throws java.security.KeyStoreException, java.security.NoSuchAlgorithmException, java.security.cert.CertificateException, java.io.IOException, NotFoundException
user
- The user whose keystore is to be obtainedstorePassword
- the password to be provided for opening the keystore
java.security.KeyStoreException
java.io.IOException
java.security.cert.CertificateException
java.security.NoSuchAlgorithmException
NotFoundException
public static java.security.KeyStore getKeyStore(java.lang.String user, java.lang.String keyStoreType) throws java.security.KeyStoreException, java.security.NoSuchAlgorithmException, java.security.cert.CertificateException, java.io.IOException, NotFoundException
user
- The user whose keystore is to be obtainedkeyStoreType
- The keystore type
java.security.KeyStoreException
java.io.IOException
java.security.cert.CertificateException
java.security.NoSuchAlgorithmException
NotFoundException
public static java.security.KeyStore getKeyStore(java.lang.String user, java.lang.String keyStoreType, char[] storePassword) throws java.security.KeyStoreException, java.security.NoSuchAlgorithmException, java.security.cert.CertificateException, java.io.IOException, NotFoundException
user
- The user whose keystore is to be obtainedkeyStoreType
- The keystore typestorePassword
- the password to be provided for opening the keystore
java.security.KeyStoreException
java.io.IOException
java.security.cert.CertificateException
java.security.NoSuchAlgorithmException
NotFoundException
- If no keystore file for this user could be foundpublic static java.io.InputStream getKeyStoreInputStream(java.lang.Class<?> clazz) throws NotFoundException
clazz
- The class of the object for which a keystore is to be found. The name of the resource that will be searched for is the full classname, followed by the SUFFIX constant.
NotFoundException
public static java.io.InputStream getKeyStoreInputStream(java.lang.String user) throws NotFoundException
user
- The user for which a keystore input stream is to be returned
NotFoundException
public static java.security.KeyStore getPackageKeyStore(java.lang.Class<?> clazz) throws java.security.KeyStoreException, NotFoundException, java.io.IOException, java.security.NoSuchAlgorithmException, java.security.cert.CertificateException
clazz
- The class of the object for which a keystore is to be found. The name of the resource that will be searched for is the full packagename, followed by the SUFFIX constant.
java.security.KeyStoreException
NotFoundException
java.io.IOException
java.security.NoSuchAlgorithmException
java.security.cert.CertificateException
public static java.security.KeyStore getPackageKeyStore(java.lang.Class<?> clazz, char[] storePassword) throws java.security.KeyStoreException, NotFoundException, java.io.IOException, java.security.NoSuchAlgorithmException, java.security.cert.CertificateException
clazz
- The class of the object for which a keystore is to be found. The name of the resource that will be searched for is the full packagename, followed by the SUFFIX constant.storePassword
- The password for loading the store
java.security.KeyStoreException
NotFoundException
java.io.IOException
java.security.NoSuchAlgorithmException
java.security.cert.CertificateException
public static java.security.KeyStore getPackageKeyStore(java.lang.Class<?> clazz, java.lang.String keyStoreType) throws java.security.KeyStoreException, NotFoundException, java.io.IOException, java.security.NoSuchAlgorithmException, java.security.cert.CertificateException
clazz
- The class of the object for which a keystore is to be found. The name of the resource that will be searched for is the full packagename, followed by the SUFFIX constant.keyStoreType
- The name of the KeyStore type to be returned to the caller
java.security.KeyStoreException
NotFoundException
java.io.IOException
java.security.NoSuchAlgorithmException
java.security.cert.CertificateException
public static java.security.KeyStore getPackageKeyStore(java.lang.Class<?> clazz, java.lang.String keyStoreType, char[] storePassword) throws java.security.KeyStoreException, NotFoundException, java.io.IOException, java.security.NoSuchAlgorithmException, java.security.cert.CertificateException
clazz
- The class of the object for which a keystore is to be found. The name of the resource that will be searched for is the full packagename, followed by the SUFFIX constant.keyStoreType
- The name of the KeyStore type to be returned to the callerstorePassword
- The password for loading the store
java.security.KeyStoreException
NotFoundException
java.io.IOException
java.security.NoSuchAlgorithmException
java.security.cert.CertificateException
public static java.io.InputStream getPackageKeyStoreInputStream(java.lang.Class<?> clazz) throws NotFoundException
clazz
- The class of the object for which a keystore is to be found. The name of the resource that will be searched for is the full classname, followed by the SUFFIX constant.
NotFoundException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |