public class EncryptionKey extends Object
EncryptionUtil
Modifier and Type | Class and Description |
---|---|
static class |
EncryptionKey.Source |
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.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
EncryptionKey.Source |
getSource() |
String |
getValue() |
int |
hashCode() |
String |
resolve()
Locate the key according to its value type and return it.
|
String |
toString() |
public EncryptionKey(String value, EncryptionKey.Source source)
value
- the encryption keysource
- the type of valuepublic EncryptionKey(String value)
value
- the encryption keypublic String getValue()
public EncryptionKey.Source getSource()
public String resolve()
null
if the key does not exist
for the specified typeCopyright © 2008–2016 Norconex Inc.. All rights reserved.