|
For the latest news and information visit The GNU Crypto project |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.crypto.SecretKeyFactorySpi | +--gnu.crypto.jce.PBKDF2SecretKeyFactory
Nested Class Summary | |
---|---|
static class |
PBKDF2SecretKeyFactory.HMacHaval
|
static class |
PBKDF2SecretKeyFactory.HMacMD2
|
static class |
PBKDF2SecretKeyFactory.HMacMD4
|
static class |
PBKDF2SecretKeyFactory.HMacMD5
|
static class |
PBKDF2SecretKeyFactory.HMacRipeMD128
|
static class |
PBKDF2SecretKeyFactory.HMacRipeMD160
|
static class |
PBKDF2SecretKeyFactory.HMacSHA1
|
static class |
PBKDF2SecretKeyFactory.HMacSHA256
|
static class |
PBKDF2SecretKeyFactory.HMacSHA384
|
static class |
PBKDF2SecretKeyFactory.HMacSHA512
|
static class |
PBKDF2SecretKeyFactory.HMacTiger
|
static class |
PBKDF2SecretKeyFactory.HMacWhirlpool
|
Field Summary | |
---|---|
protected java.lang.String |
macName
|
Constructor Summary | |
---|---|
protected |
PBKDF2SecretKeyFactory(java.lang.String macName)
|
Method Summary | |
---|---|
protected SecretKey |
engineGenerateSecret(java.security.spec.KeySpec spec)
Generates a SecretKey object from the
provided key specification (key material). |
protected java.security.spec.KeySpec |
engineGetKeySpec(SecretKey key,
java.lang.Class clazz)
Returns a specification (key material) of the given key object in the requested format. |
protected SecretKey |
engineTranslateKey(SecretKey key)
Translates a key object, whose provider may be unknown or potentially untrusted, into a corresponding key object of this secret-key factory. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.lang.String macName
Constructor Detail |
protected PBKDF2SecretKeyFactory(java.lang.String macName)
Method Detail |
protected SecretKey engineGenerateSecret(java.security.spec.KeySpec spec) throws java.security.spec.InvalidKeySpecException
SecretKeyFactorySpi
SecretKey
object from the
provided key specification (key material).
engineGenerateSecret
in class SecretKeyFactorySpi
spec
- the specification (key material) of the secret key
java.security.spec.InvalidKeySpecException
- if the given key specification
is inappropriate for this secret-key factory to produce a secret key.protected java.security.spec.KeySpec engineGetKeySpec(SecretKey key, java.lang.Class clazz) throws java.security.spec.InvalidKeySpecException
SecretKeyFactorySpi
engineGetKeySpec
in class SecretKeyFactorySpi
key
- the keyclazz
- the requested format in which the key material shall be returned
java.security.spec.InvalidKeySpecException
- if the requested key specification is inappropriate for
the given key (e.g., the algorithms associated with key
and keySpec
do
not match, or key
references a key on a cryptographic hardware device whereas
keySpec
is the specification of a software-based key), or the given key cannot be
dealt with (e.g., the given key has an algorithm or format not supported by this secret-key factory).protected SecretKey engineTranslateKey(SecretKey key)
SecretKeyFactorySpi
engineTranslateKey
in class SecretKeyFactorySpi
key
- the key whose provider is unknown or untrusted
|
For the latest news and information visit The GNU Crypto project |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |