public class LunaSecretKeyPBKDF2 extends LunaSecretKey implements javax.crypto.interfaces.PBEKey
ivRandom, ivSecureRandom, keySize, lapi, mKeyClass, mKeyType, mObject, UNLIMITED_USE
Constructor and Description |
---|
LunaSecretKeyPBKDF2(int hKey,
long prfType,
int iterationCount,
char[] password,
byte[] salt,
int keyLength) |
LunaSecretKeyPBKDF2(int hKey,
long prfType,
int iterationCount,
char[] password,
byte[] salt,
int keyLength,
int slot) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAlgorithm()
Returns a String representation of the key algorithm
|
int |
getIterationCount() |
int |
getKeyLength() |
char[] |
getPassword() |
byte[] |
getSalt() |
static LunaSecretKeyPBKDF2 |
InjectPBKDF2Key(javax.crypto.interfaces.PBEKey pbeKey,
javax.crypto.spec.PBEKeySpec pbeSpec) |
static LunaSecretKeyPBKDF2 |
InjectPBKDF2Key(javax.crypto.interfaces.PBEKey pbeKey,
javax.crypto.spec.PBEKeySpec pbeSpec,
int slot) |
ExtractSecretKey, getEncodedInternal, getFormat, InjectSecretKey, InjectSecretKey, InjectSecretKey, InjectSecretKey, InjectSecretKey
assign, AttributeToBigInteger, authorize, BigIntegerToAttribute, cacheAuthorizedSession, deleteCacheAuthorizedSession, DestroyKey, equals, generateRandomIv, GetAlias, getAuthorizedSession, getBytesRemaining, getCacheAuthorizedSession, GetDateMadePersistent, getEncoded, GetFingerprint, getKeyByType, GetKeyClass, GetKeyHandle, getKeySize, getKeyType, GetKeyType, GetOUID, getSession, getSlot, getUsageCount, getUsageLimit, hashCode, incrementFailedAuthorizationCount, Initialize, Initialize, injectKey, InjectPrivateKey, InjectPrivateKey, InjectPrivateKey, InjectPrivateKey, isInitialized, IsKeyPersistent, LocateKeyByAlias, LocateKeyByAlias, LocateKeyByFingerprint, LocateKeyByFingerprint, LocateKeyByHandle, LocateKeyByHandle, LocateKeyByOUID, LocateKeyByOUID, LocateKeyOnlyByAlias, LocateKeyOnlyByAlias, MakePersistent, release, resetAuthorizationData, resetAuthorizedSession, setAuthorizationData, setKeySize, setUsageCount, setUsageLimit, toString, verifyClassAndType
public LunaSecretKeyPBKDF2(int hKey, long prfType, int iterationCount, char[] password, byte[] salt, int keyLength)
public LunaSecretKeyPBKDF2(int hKey, long prfType, int iterationCount, char[] password, byte[] salt, int keyLength, int slot)
public int getIterationCount()
getIterationCount
in interface javax.crypto.interfaces.PBEKey
public char[] getPassword()
getPassword
in interface javax.crypto.interfaces.PBEKey
public byte[] getSalt()
getSalt
in interface javax.crypto.interfaces.PBEKey
public int getKeyLength()
public java.lang.String getAlgorithm()
LunaKey
getAlgorithm
in interface java.security.Key
getAlgorithm
in class LunaKey
public static LunaSecretKeyPBKDF2 InjectPBKDF2Key(javax.crypto.interfaces.PBEKey pbeKey, javax.crypto.spec.PBEKeySpec pbeSpec) throws java.security.InvalidKeyException
java.security.InvalidKeyException
public static LunaSecretKeyPBKDF2 InjectPBKDF2Key(javax.crypto.interfaces.PBEKey pbeKey, javax.crypto.spec.PBEKeySpec pbeSpec, int slot) throws java.security.InvalidKeyException
java.security.InvalidKeyException
Copyright 2014-2018 SafeNet. All rights reserved.