public class EncryptionKey extends Object implements Serializable
EncryptionUtil
,
Serialized FormModifier and Type | Class and Description |
---|---|
static class |
EncryptionKey.Source |
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_KEY_SIZE |
Constructor and Description |
---|
EncryptionKey(String value)
Creates a new encryption key where the value is the actual key.
|
EncryptionKey(String value,
EncryptionKey.Source source)
Creates a new reference to an encryption key.
|
EncryptionKey(String value,
EncryptionKey.Source source,
int size)
Creates a new reference to an encryption key.
|
EncryptionKey(String value,
int size)
Creates a new encryption key where the value is the actual key, and the
number of key bits to generate is the size.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
int |
getSize()
Gets the size in bits of the encryption key.
|
EncryptionKey.Source |
getSource() |
String |
getValue() |
int |
hashCode() |
String |
resolve()
Locate the key according to its value type and return it.
|
String |
toString() |
public static final int DEFAULT_KEY_SIZE
public EncryptionKey(String value, EncryptionKey.Source source, int size)
value
- the encryption keysize
- the size in bits of the encryption keysource
- the type of valuepublic EncryptionKey(String value, EncryptionKey.Source source)
value
- the encryption keysource
- the type of valuepublic EncryptionKey(String value, int size)
value
- the encrption keysize
- the encryption key size in bitspublic EncryptionKey(String value)
value
- the encryption keypublic String getValue()
public EncryptionKey.Source getSource()
public int getSize()
public String resolve()
null
if the key does not exist
for the specified typeCopyright © 2008–2021 Norconex Inc.. All rights reserved.