|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.crowd.model.application.RemoteAddress
public class RemoteAddress
Represents a valid IP address (IPv4, IPv6) or hostname for an Application
| Constructor Summary | |
|---|---|
RemoteAddress(java.lang.String address)
Generates a RemoteAddress based on the value provided |
|
| Method Summary | |
|---|---|
int |
compareTo(RemoteAddress o)
|
boolean |
equals(java.lang.Object o)
|
java.lang.String |
getAddress()
Returns the address. |
byte[] |
getAddressBytes()
Returns the IP address in bytes array (1 byte per octet), or null if the address is a hostname. |
java.lang.String |
getEncodedAddressBytes()
Returns the IP address bytes as a Base64 encoded string. |
int |
getMask()
Returns the mask length in bits. |
int |
hashCode()
|
boolean |
isHostName()
Returns true if the address is a hostname. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RemoteAddress(java.lang.String address)
address - can be either a hostname or IP address (IPv4 or IPv6)
An IPv4, IPv6 address can also have a mask defined in CIDR format
Any input that is not recognised as IPv4 or IPv6 format will be treated as a hostname.| Method Detail |
|---|
public java.lang.String getAddress()
public byte[] getAddressBytes()
public boolean isHostName()
public int getMask()
public java.lang.String getEncodedAddressBytes()
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic int compareTo(RemoteAddress o)
compareTo in interface java.lang.Comparable<RemoteAddress>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||