public class LunaSecretKeyPBE extends LunaSecretKey implements javax.crypto.interfaces.PBEKey
ivRandom, ivSecureRandom, keySize, lapi, mKeyClass, mKeyType, mObject, UNLIMITED_USE
Constructor and Description |
---|
LunaSecretKeyPBE(int hKey,
byte[] iv,
int iterationCount,
char[] password,
byte[] salt,
long mechType) |
LunaSecretKeyPBE(int hKey,
byte[] iv,
int iterationCount,
char[] password,
byte[] salt,
long mechType,
int slot) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAlgorithm()
Returns a String representation of the key algorithm
|
int |
getIterationCount() |
byte[] |
getIv() |
char[] |
getPassword() |
byte[] |
getSalt() |
static LunaSecretKeyPBE |
InjectPBEKey(javax.crypto.interfaces.PBEKey pbeKey,
javax.crypto.spec.PBEParameterSpec pbeSpec) |
static LunaSecretKeyPBE |
InjectPBEKey(javax.crypto.interfaces.PBEKey pbeKey,
javax.crypto.spec.PBEParameterSpec 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 LunaSecretKeyPBE(int hKey, byte[] iv, int iterationCount, char[] password, byte[] salt, long mechType)
public LunaSecretKeyPBE(int hKey, byte[] iv, int iterationCount, char[] password, byte[] salt, long mechType, 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 byte[] getIv()
public java.lang.String getAlgorithm()
LunaKey
getAlgorithm
in interface java.security.Key
getAlgorithm
in class LunaKey
public static LunaSecretKeyPBE InjectPBEKey(javax.crypto.interfaces.PBEKey pbeKey, javax.crypto.spec.PBEParameterSpec pbeSpec) throws java.security.InvalidKeyException
java.security.InvalidKeyException
public static LunaSecretKeyPBE InjectPBEKey(javax.crypto.interfaces.PBEKey pbeKey, javax.crypto.spec.PBEParameterSpec pbeSpec, int slot) throws java.security.InvalidKeyException
java.security.InvalidKeyException
Copyright 2014-2018 SafeNet. All rights reserved.