|
JSR 177 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.security.KeyFactory
public class KeyFactory
Key factories are used to convert key specifications
(transparent representations of the underlying key material)
into keys (opaque cryptographic keys of type Key).
Key,
PublicKey,
KeySpec,
X509EncodedKeySpec| Method Summary | |
|---|---|
PublicKey |
generatePublic(KeySpec keySpec)
Generates a public key object from the provided key specification (key material). |
static KeyFactory |
getInstance(java.lang.String algorithm)
Generates a KeyFactory object that implements the specified algorithm. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static KeyFactory getInstance(java.lang.String algorithm)
throws NoSuchAlgorithmException
algorithm - the name of the requested key algorithm.
See Appendix A in the
Java Cryptography Architecture API Specification & Reference
for information about standard algorithm names.
KeyFactory object for the specified algorithm.
NoSuchAlgorithmException - if the requested algorithm is
not available
public final PublicKey generatePublic(KeySpec keySpec)
throws InvalidKeySpecException
keySpec - the specification (key material) of the public key.
InvalidKeySpecException - if the given key specification
is inappropriate for this key factory to produce a public key.
|
JSR 177 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||