public class Settings extends Object implements Map<String,String>
Modifier and Type | Class and Description |
---|---|
static class |
Settings.Data |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
boolean |
containsKey(Object key) |
boolean |
containsValue(Object value) |
Set<Map.Entry<String,String>> |
entrySet() |
void |
generate() |
void |
generate(char[] password) |
String |
get(Object key) |
String |
getEmail() |
String |
getName() |
byte[] |
getPrivateKey()
Return an encoded private RSA key.
|
byte[] |
getPublicKey()
Return an encoded public RSA key.
|
boolean |
isDirty() |
boolean |
isEmpty() |
Set<String> |
keySet() |
boolean |
load() |
boolean |
load(char[] password) |
String |
put(String key,
String value) |
void |
putAll(Map<? extends String,? extends String> v) |
String |
remove(Object key) |
void |
save() |
void |
save(char[] password) |
void |
setEmail(String email) |
void |
setKeyPair(byte[] id,
byte[] secret) |
void |
setName(String v) |
byte[] |
sign(byte[] con)
Sign a byte array
|
int |
size() |
String |
toString() |
Collection<String> |
values() |
boolean |
verify(byte[] con)
Verify a signed byte array
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll
public Settings()
public Settings(String where)
public boolean load()
public boolean load(char[] password)
public void save()
public void save(char[] password)
public String getEmail()
public void setEmail(String email)
public void setName(String v)
public String getName()
public byte[] getPublicKey() throws Exception
Exception
public byte[] getPrivateKey() throws Exception
Exception
public boolean verify(byte[] con) throws Exception
Exception
public boolean containsKey(Object key)
containsKey
in interface Map<String,String>
public boolean containsValue(Object value)
containsValue
in interface Map<String,String>
public boolean isDirty()
Copyright © 2021 aQute SARL. All rights reserved.