| Modifier and Type | Field and Description |
|---|---|
| private static KeyFactory |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private static void | |
| protected PrivateKey | engineGeneratePrivate(KeySpec keySpec)
Implements abstract java. Generates a private key object from the provided key specification (key material). |
| protected PublicKey | engineGeneratePublic(KeySpec keySpec)
Implements abstract java. Generates a public key object from the provided key specification (key material). |
| protected <T extends KeySpec> T | engineGetKeySpec(Key key, Class<T> keySpec)
Implements abstract java. Returns a specification (key material) of the given key object. |
| protected Key | engineTranslateKey(Key key)
Implements abstract java. Translate an EC key into a Sun EC key. |
| private static KeyFactory | |
| private PrivateKey | |
| private PublicKey | |
| private PrivateKey | |
| private PublicKey | |
| public static ECKey |
| instance | back to summary |
|---|---|
| private static KeyFactory instance | |
| ECKeyFactory | back to summary |
|---|---|
| public ECKeyFactory() | |
| checkKey | back to summary |
|---|---|
| private static void checkKey(ECKey key) throws InvalidKeyException Check that the given EC key is valid. | |
| engineGeneratePrivate | back to summary |
|---|---|
| protected PrivateKey engineGeneratePrivate(KeySpec keySpec) throws InvalidKeySpecException Implements abstract java. Doc from java. Generates a private key object from the provided key specification (key material).
| |
| engineGeneratePublic | back to summary |
|---|---|
| protected PublicKey engineGeneratePublic(KeySpec keySpec) throws InvalidKeySpecException Implements abstract java. Doc from java. Generates a public key object from the provided key specification (key material).
| |
| engineGetKeySpec | back to summary |
|---|---|
| protected <T extends KeySpec> T engineGetKeySpec(Key key, Class<T> keySpec) throws InvalidKeySpecException Implements abstract java. Doc from java. Returns a specification (key material) of the given key
object.
| |
| engineTranslateKey | back to summary |
|---|---|
| protected Key engineTranslateKey(Key key) throws InvalidKeyException Implements abstract java. Translate an EC key into a Sun EC key. If conversion is not possible, throw an InvalidKeyException. See also JCA doc.
| |
| getInstance | back to summary |
|---|---|
| private static KeyFactory getInstance() | |
| implGeneratePrivate | back to summary |
|---|---|
| private PrivateKey implGeneratePrivate(KeySpec keySpec) throws GeneralSecurityException | |
| implGeneratePublic | back to summary |
|---|---|
| private PublicKey implGeneratePublic(KeySpec keySpec) throws GeneralSecurityException | |
| implTranslatePrivateKey | back to summary |
|---|---|
| private PrivateKey implTranslatePrivateKey(PrivateKey key) throws InvalidKeyException | |
| implTranslatePublicKey | back to summary |
|---|---|
| private PublicKey implTranslatePublicKey(PublicKey key) throws InvalidKeyException | |
| toECKey | back to summary |
|---|---|
| public static ECKey toECKey(Key key) throws InvalidKeyException Static method to convert Key into a usable instance of ECPublicKey or ECPrivateKey. Check the key and convert it to a Sun key if necessary. If the key is not an EC key or cannot be used, throw an InvalidKeyException. The difference between this method and engineTranslateKey() is that we do not convert keys of other providers that are already an instance of ECPublicKey or ECPrivateKey. To be used by future Java ECDSA and ECDH implementations. | |