public class Utils extends Object
Constructor and Description |
---|
Utils() |
Modifier and Type | Method and Description |
---|---|
static String |
extractCustomerKeyFromAuthHeader(String authHeader)
Extract the customer key from the OAuth Authentication header
|
static boolean |
isIpInRange(String address,
String range)
Check whether a given Ip is in a given ip range
|
static void |
main(String[] args) |
public static boolean isIpInRange(String address, String range) throws UnknownHostException
address
- ip address to checkrange
- range ex: 192.168.2.2-192.168.2.100UnknownHostException
- If Host is not Valid or can't resolve itpublic static String extractCustomerKeyFromAuthHeader(String authHeader)
authHeader
- Header stringpublic static void main(String[] args) throws UnknownHostException
UnknownHostException
Copyright © 2005–2017 Apache Software Foundation. All rights reserved.