AbstractMap.SimpleEntry, AbstractMap.SimpleImmutableEntry| Modifier and Type | Field and Description |
|---|---|
static String |
HUBID_KEY
Key for client public-id used by hub when sending messages itself.
|
static String |
PRIVATEKEY_KEY
Key for private-key token used for communications between hub and
registering client (Standard Profile).
|
static String |
SELFID_KEY
Key for client public-id owned by the registering application.
|
| Constructor and Description |
|---|
RegInfo()
Constructs an empty RegInfo.
|
RegInfo(Map map)
Constructs a RegInfo based on an existing map.
|
| Modifier and Type | Method and Description |
|---|---|
static RegInfo |
asRegInfo(Map map)
Returns a given map as a RegInfo.
|
void |
check()
Checks that this object is ready for use with the SAMP toolkit.
|
String |
getHubId()
Returns the hub's own public client id.
|
String |
getPrivateKey()
Returns the registered client's private key (Standard Profile).
|
String |
getSelfId()
Returns the registered client's public client id.
|
checkHasKeys, entrySet, getList, getMap, getString, getUrl, putclear, clone, containsKey, containsValue, equals, get, hashCode, isEmpty, keySet, putAll, remove, size, toString, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic static final String HUBID_KEY
public static final String SELFID_KEY
public static final String PRIVATEKEY_KEY
public RegInfo()
public RegInfo(Map map)
map - map containing initial data for this objectpublic String getSelfId()
SELFID_KEY valuepublic String getPrivateKey()
PRIVATEKEY_KEY valuepublic void check()
SampMapSampUtils.checkMap(java.util.Map) (ensuring that all keys
are Strings, and all values Strings, Lists or Maps), subclass-specific
invariants may be checked. In the case that there's something wrong,
an informative DataException will be thrown.Copyright © 2008–2024. All rights reserved.