|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.crowd.util.RemoteAddressHelper
public class RemoteAddressHelper
| Constructor Summary | |
|---|---|
RemoteAddressHelper()
|
|
| Method Summary | |
|---|---|
static byte[] |
getAddressInBytes(java.lang.String address)
Converts String representation of valid IP addresses into a byte array. |
static boolean |
isAddressAllowed(RemoteAddress allowedAddress,
RemoteAddress requestAddress)
Compares the request address (hostname or IP address) with the specified allowed address (hostname or IP address) to determine if the request address matches the allowed address. |
static boolean |
isValidIPNotation(java.lang.String address)
Determines if the provided string is a valid IP address |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RemoteAddressHelper()
| Method Detail |
|---|
public static boolean isAddressAllowed(RemoteAddress allowedAddress,
RemoteAddress requestAddress)
allowedAddress - a hostname or IP address that is allowedrequestAddress - the address to check against the specified allowedAddress to determine if it shall be allowed or not
public static byte[] getAddressInBytes(java.lang.String address)
address - hostname or IP address
public static boolean isValidIPNotation(java.lang.String address)
address - IP address
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||