@MappedSuperclass public abstract class MappedMorton extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
protected static int |
DENSITY_MAX
The maximum value of
density. |
protected static int |
DENSITY_MIN
The minimum value of
density. |
protected static int |
MAPPED_DENSITY
The default value for
density. |
protected static int |
MAPPED_SODIUM_LENGTH
The default length of
sodium. |
protected static int |
SODIUM_SIZE_MAX
The maximum length of
sodium. |
protected static int |
SODIUM_SIZE_MIN
The minimum length of
sodium. |
| Modifier | Constructor and Description |
|---|---|
|
MappedMorton()
Creates a new instance.
|
protected |
MappedMorton(int density,
byte[] sodium)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
protected static char[] |
cassword(byte[] bassword)
Converts given
bassword into a char[]. |
protected static int |
iterationCount(int density,
byte[] bland) |
protected static byte[] |
pbkdf2(char[] password,
byte[] salt,
int iterationCount,
int keyLength)
Does
PBKDF2. |
byte[] |
salty(byte[] bland)
Makes given
bland salty. |
protected static byte[] |
sodium(int length)
Generates a
sodium. |
protected static final int DENSITY_MIN
density.protected static final int DENSITY_MAX
density.protected static final int MAPPED_DENSITY
density.protected static final int SODIUM_SIZE_MIN
sodium.protected static final int SODIUM_SIZE_MAX
sodium.protected static final int MAPPED_SODIUM_LENGTH
sodium.protected MappedMorton(int density,
byte[] sodium)
density - densitysodium - sodiumpublic MappedMorton()
protected static byte[] pbkdf2(char[] password,
byte[] salt,
int iterationCount,
int keyLength)
PBKDF2.password - passwordsalt - saltiterationCount - iteration countkeyLength - key length (in bits).protected static char[] cassword(byte[] bassword)
bassword into a char[].bassword - the byte array; must be not null nor empty.protected static int iterationCount(int density,
byte[] bland)
protected static byte[] sodium(int length)
sodium.length - number of bytespublic byte[] salty(byte[] bland)
bland salty.bland - the bland input; must be not null nor empty.Copyright © 2011-2013. All Rights Reserved.