Package i2p.susi.dns
Class AddressBean
- java.lang.Object
-
- i2p.susi.dns.AddressBean
-
public class AddressBean extends Object
-
-
Field Summary
Fields Modifier and Type Field Description (package private) static booleanhaveIDNavailable as of Java 6
-
Constructor Summary
Constructors Constructor Description AddressBean(String name, String destination)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetAdded()StringgetB32()StringgetB64()StringgetCert()Do this the easy wayStringgetDestination()StringgetDisplayName()The Unicode name, translated from PunycodeStringgetModded()StringgetName()The ASCII (Punycode) nameStringgetNotes()StringgetSigType()Do this the easy wayStringgetSource()booleanisIDN()Is the ASCII name Punycode-encoded?booleanisValidated()voidsetProperties(Properties p)(package private) static StringtoASCII(String host)Ref: java.net.IDN and RFC 3490static StringtoUnicode(String host)The Unicode name, translated from Punycode
-
-
-
Method Detail
-
getDestination
public String getDestination()
-
getName
public String getName()
The ASCII (Punycode) name
-
getDisplayName
public String getDisplayName()
The Unicode name, translated from Punycode- Returns:
- the original string on error
- Since:
- 0.8.7
-
toUnicode
public static String toUnicode(String host)
The Unicode name, translated from Punycode- Returns:
- the original string on error
- Since:
- 0.8.7
-
isIDN
public boolean isIDN()
Is the ASCII name Punycode-encoded?- Since:
- 0.8.7
-
toASCII
static String toASCII(String host) throws IllegalArgumentException
Ref: java.net.IDN and RFC 3490- Parameters:
host- will be converted to lower case- Returns:
- name converted to lower case and punycoded if necessary
- Throws:
IllegalArgumentException- on various errors or if IDN is needed but not available- Since:
- 0.8.7
-
getB32
public String getB32()
- Since:
- 0.8.7
-
getB64
public String getB64()
- Since:
- 0.9
-
setProperties
public void setProperties(Properties p)
- Since:
- 0.8.7
-
getSource
public String getSource()
- Since:
- 0.8.7
-
getAdded
public String getAdded()
- Since:
- 0.8.7
-
getModded
public String getModded()
- Since:
- 0.8.7
-
isValidated
public boolean isValidated()
- Since:
- 0.9.26
-
getNotes
public String getNotes()
- Since:
- 0.8.7
-
getCert
public String getCert()
Do this the easy way- Since:
- 0.8.7
-
getSigType
public String getSigType()
Do this the easy way- Since:
- 0.9.12
-
-