public class AddressBean extends Object
| Modifier and Type | Field and Description |
|---|---|
(package private) static boolean |
haveIDN
available as of Java 6
|
| Constructor and Description |
|---|
AddressBean(String name,
byte[] destination)
Constructs an AddressBean with hostname and destination as byte array.
|
AddressBean(String name,
Destination destination)
Constructs an AddressBean with hostname and destination object.
|
AddressBean(String name,
String destination)
Constructs an AddressBean with hostname and base64 encoded destination.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getAdded()
Gets the date when this address was added.
|
String |
getB32()
Gets the base32 hash address for this destination.
|
String |
getB64()
Gets the base64 hash of the destination.
|
String |
getCert()
Do this the easy way
|
String |
getDestination()
Gets the destination as base64 encoded string.
|
String |
getDisplayName()
The Unicode name, translated from Punycode
|
String |
getEncType()
Do this the easy way
|
String |
getModded()
Gets the date when this address was last modified.
|
String |
getName()
The ASCII (Punycode) name
|
String |
getNotes()
Gets the notes for this address entry, HTML escaped.
|
(package private) String |
getProp(String p)
Gets a property value for this address entry.
|
String |
getSigType()
Do this the easy way
|
String |
getSource()
Gets the source URL or name for this address entry.
|
String |
getSourceHostname()
Gets the source URL with hostname as display text for this address entry.
|
boolean |
isIDN()
Is the ASCII name Punycode-encoded?
|
boolean |
isValidated()
Checks if this address has been validated.
|
void |
setProperties(Properties p)
Sets the properties for this address entry.
|
(package private) static String |
toASCII(String host)
Ref: java.net.IDN and RFC 3490
|
static String |
toUnicode(String host)
The Unicode name, translated from Punycode
|
public AddressBean(String name, byte[] destination)
name - the hostnamedestination - the destination as byte arraypublic AddressBean(String name, Destination destination)
name - the hostnamedestination - the destination objectpublic String getAdded()
public String getB32()
public String getB64()
public String getCert()
public String getDestination()
public String getDisplayName()
public String getEncType()
public String getModded()
public String getName()
public String getNotes()
String getProp(String p)
p - the property keypublic String getSigType()
public String getSource()
public String getSourceHostname()
public boolean isIDN()
public boolean isValidated()
public void setProperties(Properties p)
p - the properties to setstatic String toASCII(String host) throws IllegalArgumentException
host - will be converted to lower caseIllegalArgumentException - on various errors or if IDN is needed but not available