| |
|
| java.lang.Object java.security.KeyFactory
Constructor Summary | |
| KeyFactory() Creates a KeyFactory object. |
Method Summary | |
final public PublicKey | generatePublic(KeySpec keySpec) Generates a public key object from the provided key specification
(key material).
Parameters: keySpec - the specification (key material) of the public key. | public static KeyFactory | getInstance(String algorithm) Generates a KeyFactory object that implements the specified
algorithm. |
KeyFactory | KeyFactory()(Code) | | Creates a KeyFactory object.
|
generatePublic | final public PublicKey generatePublic(KeySpec keySpec) throws InvalidKeySpecException(Code) | | Generates a public key object from the provided key specification
(key material).
Parameters: keySpec - the specification (key material) of the public key. the public key. exception: InvalidKeySpecException - if the given key specificationis inappropriate for this key factory to produce a public key. |
getInstance | public static KeyFactory getInstance(String algorithm) throws NoSuchAlgorithmException(Code) | | Generates a KeyFactory object that implements the specified
algorithm.
Parameters: 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. a KeyFactory object for the specified algorithm. exception: NoSuchAlgorithmException - if the requested algorithm isnot available |
|
|
|