| Modifier and Type | Field and Description |
|---|---|
protected java.util.ArrayList<AccessPoint> |
accessPoints
The list of the different access points
|
| Constructor and Description |
|---|
POPAccessPoint()
Create a new POPAccessPoint()
|
POPAccessPoint(boolean initialize)
Create a new POPAccessPoint an make some initialization tasks
|
POPAccessPoint(java.lang.String accessString)
Create a new POPAccessPoint with a formatted string
|
| Modifier and Type | Method and Description |
|---|---|
void |
addAccessPoint(AccessPoint accessPoint)
Add an access point to the POPAccessPoint
|
boolean |
deserialize(POPBuffer buffer)
Deserialize the object from the buffer received from the network
|
boolean |
equals(java.lang.Object obj) |
AccessPoint |
get(int index)
Get the access point at specified index
|
java.lang.String |
getFingerprint() |
byte[] |
getX509certificate() |
int |
hashCode() |
boolean |
hasSameAccessPoint(POPAccessPoint ap) |
boolean |
isEmpty()
Check if the current object is empty
|
boolean |
serialize(POPBuffer buffer)
Serialize the object into the buffer to be sent over the network
|
void |
setAccessString(java.lang.String accessString)
Add an access point by a formatted string
|
void |
setFingerprint(java.lang.String fingerprint) |
void |
setX509certificate(byte[] x509certificate) |
int |
size()
Get the number of different access points
|
java.lang.String |
toString()
Format the POPAccessPoint to a string value
|
protected final java.util.ArrayList<AccessPoint> accessPoints
public POPAccessPoint()
public POPAccessPoint(boolean initialize)
initialize - Set to false if you don't want the initializationpublic POPAccessPoint(java.lang.String accessString)
accessString - Formatted string to create the POPAccessPointpublic boolean serialize(POPBuffer buffer)
public boolean deserialize(POPBuffer buffer)
deserialize in interface IPOPBasebuffer - The buffer to deserialize frompublic java.lang.String getFingerprint()
public void setFingerprint(java.lang.String fingerprint)
public byte[] getX509certificate()
public void setX509certificate(byte[] x509certificate)
public void addAccessPoint(AccessPoint accessPoint)
accessPoint - New access point to be addedpublic boolean isEmpty()
public java.lang.String toString()
toString in class java.lang.Objectpublic void setAccessString(java.lang.String accessString)
accessString - Formatted string to be added as an access pointpublic int size()
public AccessPoint get(int index)
index - index of the access point to returnpublic boolean hasSameAccessPoint(POPAccessPoint ap)
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object