|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--java.security.KeyFactorySpi
|
+--de.flexiprovider.api.keys.KeyFactory
| Constructor Summary | |
KeyFactory()
|
|
| Method Summary | |
protected java.security.PrivateKey |
engineGeneratePrivate(java.security.spec.KeySpec keySpec)
JCA adapter for FlexiAPI method generatePrivate(): generate a private key object from the provided key specification (key material). |
protected java.security.PublicKey |
engineGeneratePublic(java.security.spec.KeySpec keySpec)
JCA adapter for FlexiAPI method generatePublic(): generates a public key object from the provided key specification (key material). |
protected java.security.spec.KeySpec |
engineGetKeySpec(java.security.Key key,
java.lang.Class keySpec)
JCA adapter for FlexiAPI method getKeySpec(): return a specification (key material) of the given key object. |
protected java.security.Key |
engineTranslateKey(java.security.Key key)
JCA adapter for FlexiAPI method translateKey(): translate a key object, whose provider may be unknown or potentially untrusted, into a corresponding key object of this key factory. |
abstract PrivateKey |
generatePrivate(KeySpec keySpec)
Generate a private key object from the provided key specification (key material). |
abstract PublicKey |
generatePublic(KeySpec keySpec)
Generate a public key object from the provided key specification (key material). |
abstract KeySpec |
getKeySpec(Key key,
java.lang.Class keySpec)
Return a specification (key material) of the given key object. |
abstract Key |
translateKey(Key key)
Translate a key object, whose provider may be unknown or potentially untrusted, into a corresponding key object of this key factory. |
| Methods inherited from class java.lang.Object |
|
| Constructor Detail |
public KeyFactory()
| Method Detail |
protected java.security.PublicKey engineGeneratePublic(java.security.spec.KeySpec keySpec)
throws java.security.spec.InvalidKeySpecException
engineGeneratePublic in class java.security.KeyFactorySpikeySpec - the specification (key material) of the public keyjava.security.spec.InvalidKeySpecException - if the given key specification is inappropriate for this
key factory to produce a public key.
protected java.security.PrivateKey engineGeneratePrivate(java.security.spec.KeySpec keySpec)
throws java.security.spec.InvalidKeySpecException
engineGeneratePrivate in class java.security.KeyFactorySpikeySpec - the specification (key material) of the private keyjava.security.spec.InvalidKeySpecException - if the given key specification is inappropriate for this
key factory to produce a private key.
protected final java.security.spec.KeySpec engineGetKeySpec(java.security.Key key,
java.lang.Class keySpec)
throws java.security.spec.InvalidKeySpecException
engineGetKeySpec in class java.security.KeyFactorySpikey - the keykeySpec - the specification class in which the key material should
be returnedjava.security.spec.InvalidKeySpecException - if the requested key specification is inappropriate for
the given key, or the given key cannot be dealt with
(e.g., the given key has an unrecognized format).
protected final java.security.Key engineTranslateKey(java.security.Key key)
throws java.security.InvalidKeyException
engineTranslateKey in class java.security.KeyFactorySpikey - the key whose provider is unknown or untrustedjava.security.InvalidKeyException - if the given key cannot be processed by this key factory.
public abstract PublicKey generatePublic(KeySpec keySpec)
throws InvalidKeySpecException
keySpec - the specification (key material) of the public keyInvalidKeySpecException - if the given key specification is inappropriate for this
key factory to produce a public key.
public abstract PrivateKey generatePrivate(KeySpec keySpec)
throws InvalidKeySpecException
keySpec - the specification (key material) of the private keyInvalidKeySpecException - if the given key specification is inappropriate for this
key factory to produce a private key.
public abstract KeySpec getKeySpec(Key key,
java.lang.Class keySpec)
throws InvalidKeySpecException
key - the keykeySpec - the specification class in which the key material should
be returnedInvalidKeySpecException - if the requested key specification is inappropriate for
the given key, or the given key cannot be dealt with
(e.g., the given key has an unrecognized format).
public abstract Key translateKey(Key key)
throws InvalidKeyException
key - the key whose provider is unknown or untrustedInvalidKeyException - if the given key cannot be processed by this key factory.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||