public class LunaPBKDF2Key
extends java.lang.Object
implements javax.crypto.interfaces.PBEKey
Constructor and Description |
---|
LunaPBKDF2Key(long prfType,
int iterationCount,
char[] password,
byte[] salt,
int keyLength) |
Modifier and Type | Method and Description |
---|---|
static long |
AlgorithmToPrfType(java.lang.String algorithm) |
java.lang.String |
getAlgorithm() |
byte[] |
getEncoded() |
java.lang.String |
getFormat() |
int |
getIterationCount() |
int |
getKeyLength() |
char[] |
getPassword() |
byte[] |
getSalt() |
static java.lang.String |
PrfTypeToAlgorithm(long prfType) |
public LunaPBKDF2Key(long prfType, int iterationCount, char[] password, byte[] salt, int keyLength)
public static long AlgorithmToPrfType(java.lang.String algorithm)
public static java.lang.String PrfTypeToAlgorithm(long prfType)
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 byte[] getEncoded()
getEncoded
in interface java.security.Key
public java.lang.String getFormat()
getFormat
in interface java.security.Key
public java.lang.String getAlgorithm()
getAlgorithm
in interface java.security.Key
Copyright 2014-2018 SafeNet. All rights reserved.