|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jsdsi.util.KeyPairFactory
Convenience class for generating java.security.KeyPair
's.
Method Summary | |
static java.security.KeyPair |
create(KeyEnum keyEnum)
Generates a KeyPair of the given keyEnum type. |
static java.security.KeyPair |
create(KeyEnum keyEnum,
int keysize)
Generates a KeyPair of the given keyEnum type and key size. |
static java.security.KeyPair |
create(KeyEnum keyEnum,
int keysize,
java.net.URI[] uris)
Generates a KeyPair of the given keyEnum type and uris . |
static java.security.KeyPair |
create(KeyEnum keyEnum,
java.net.URI[] uris)
Generates a KeyPair of the given keyEnum type with the given uris . |
static java.security.KeyPairGenerator |
getKeyPairGenerator(KeyEnum keyEnum,
int keysize,
java.net.URI[] uris)
Retrieves a KeyPairGenerator. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static java.security.KeyPair create(KeyEnum keyEnum) throws java.security.NoSuchAlgorithmException
keyEnum
type. The public key of the KeyPair
is a jsdsi.Principal
.
keyEnum
- the key algorithm.
java.security.NoSuchAlgorithmException
- if the algorithm is not available in the environment.public static java.security.KeyPair create(KeyEnum keyEnum, int keysize) throws java.security.NoSuchAlgorithmException
keyEnum
type and key size. The public key of
the KeyPair is a jsdsi.Principal
.
keyEnum
- the key algorithm.keysize
- the keysize. This is an algorithm-specific metric, such as modulus length,
specified in number of bits.
java.security.NoSuchAlgorithmException
- if the algorithm is not available in the environment.public static java.security.KeyPair create(KeyEnum keyEnum, java.net.URI[] uris) throws java.security.NoSuchAlgorithmException
keyEnum
type with the given uris
.
The public key of the KeyPair is a jsdsi.Principal
.
keyEnum
- the key algorithm.uris
- URI's where information about the Principal may be sought
java.security.NoSuchAlgorithmException
- if the algorithm is not available in the environment.public static java.security.KeyPair create(KeyEnum keyEnum, int keysize, java.net.URI[] uris) throws java.security.NoSuchAlgorithmException
keyEnum
type and uris
. The
public key of the KeyPair is a jsdsi.Principal
.
keyEnum
- the key algorithm.keysize
- the keysize. This is an algorithm-specific metric, such as modulus length,
specified in number of bits.uris
- URI's where information about the Principal may be sought
java.security.NoSuchAlgorithmException
- if the algorithm is not available in the environment.public static java.security.KeyPairGenerator getKeyPairGenerator(KeyEnum keyEnum, int keysize, java.net.URI[] uris) throws java.security.NoSuchAlgorithmException
keyEnum
- keysize
- uris
-
java.security.NoSuchAlgorithmException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |