public class CredentialInfo extends java.lang.Object implements DeviceListener, MementoSupport
EMPTY_CREDENTIAL_INFO instead of null.| Modifier and Type | Field and Description |
|---|---|
protected HashMap |
credentials |
protected HashMap |
discoveryProxies |
static CredentialInfo |
EMPTY_CREDENTIAL_INFO |
protected int |
hashCode |
protected boolean |
locked |
protected boolean |
secureMessagesIn |
protected boolean |
secureMessagesOut |
| Modifier | Constructor and Description |
|---|---|
protected |
CredentialInfo() |
|
CredentialInfo(java.lang.Class key,
java.lang.Object credential) |
|
CredentialInfo(java.lang.Object credential) |
| Modifier and Type | Method and Description |
|---|---|
void |
addCredential(java.lang.Class key,
java.lang.Object credential) |
void |
addCredential(java.lang.Object credential) |
void |
addDiscoveryProxyForDomain(DiscoveryDomain domain,
DeviceReference devRef)
Add a DeviceReference to the list of DiscoveryProxies
|
void |
deviceBuiltUp(DeviceReference deviceRef,
Device device)
Callback method, if device within the
DeviceReference was created. |
void |
deviceBye(DeviceReference deviceRef)
Callback method, if device bye was received or the local device was stopped.
|
void |
deviceChanged(DeviceReference deviceRef)
Callback method, if device was changed and the device data is no longer accurate.
|
void |
deviceCommunicationErrorOrReset(DeviceReference deviceRef)
Callback method, if communication with the remote device of the
DeviceReference has
failed or the reference was reset. |
void |
deviceCompletelyDiscovered(DeviceReference deviceRef)
Callback method, if discovery metadata was completely received from device (via directed
probe).
|
void |
deviceRunning(DeviceReference deviceRef)
Callback method, if device is usable.
|
boolean |
equals(java.lang.Object obj) |
java.lang.Object |
getCredential(java.lang.Class key) |
HashSet |
getDiscoveryProxiesForDomain(DiscoveryDomain domain) |
int |
hashCode() |
boolean |
isSecureMessagesIn() |
boolean |
isSecureMessagesOut() |
void |
readFromMemento(Memento m) |
void |
removeDiscoveryProxyForDomain(DiscoveryDomain domain,
DeviceReference devRef)
Removes a DeviceReference from the List of Proxies
|
void |
saveToMemento(Memento m) |
void |
setSecureMessagesIn(boolean secureMessagesIn) |
void |
setSecureMessagesOut(boolean secureMessagesOut) |
java.lang.String |
toString() |
public static final CredentialInfo EMPTY_CREDENTIAL_INFO
protected HashMap credentials
protected HashMap discoveryProxies
protected boolean secureMessagesIn
protected boolean secureMessagesOut
protected int hashCode
protected boolean locked
protected CredentialInfo()
public CredentialInfo(java.lang.Object credential)
public CredentialInfo(java.lang.Class key,
java.lang.Object credential)
public void addCredential(java.lang.Object credential)
public void addCredential(java.lang.Class key,
java.lang.Object credential)
public java.lang.Object getCredential(java.lang.Class key)
public boolean isSecureMessagesIn()
public void setSecureMessagesIn(boolean secureMessagesIn)
public boolean isSecureMessagesOut()
public void setSecureMessagesOut(boolean secureMessagesOut)
public HashSet getDiscoveryProxiesForDomain(DiscoveryDomain domain)
public void addDiscoveryProxyForDomain(DiscoveryDomain domain, DeviceReference devRef)
devRef - public void removeDiscoveryProxyForDomain(DiscoveryDomain domain, DeviceReference devRef)
devRef - public void deviceRunning(DeviceReference deviceRef)
DeviceListenerdeviceRunning in interface DeviceListenerdeviceRef - a reference to the device that caused the notificationpublic void deviceCompletelyDiscovered(DeviceReference deviceRef)
DeviceListenerdeviceCompletelyDiscovered in interface DeviceListenerdeviceRef - a reference to the device that caused the notificationpublic void deviceBye(DeviceReference deviceRef)
DeviceListenerdeviceBye in interface DeviceListenerdeviceRef - a reference to the device that caused the notificationpublic void deviceChanged(DeviceReference deviceRef)
DeviceListenerdeviceChanged in interface DeviceListenerdeviceRef - a reference to the device that caused the notificationpublic void deviceBuiltUp(DeviceReference deviceRef, Device device)
DeviceListenerDeviceReference was created.deviceBuiltUp in interface DeviceListenerdeviceRef - a reference to the device that caused the notificationdevice - the proxy device just built uppublic void deviceCommunicationErrorOrReset(DeviceReference deviceRef)
DeviceListenerDeviceReference has
failed or the reference was reset.deviceCommunicationErrorOrReset in interface DeviceListenerdeviceRef - a reference to the device that caused the notificationpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic void saveToMemento(Memento m)
saveToMemento in interface MementoSupportpublic void readFromMemento(Memento m) throws java.io.IOException
readFromMemento in interface MementoSupportjava.io.IOException