public final class ClientUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static String |
getClientIPAddress(org.forgerock.services.context.Context context)
Gets the client IP address from the provided
Context. |
static String |
getClientIPAddress(org.forgerock.services.context.Context context,
org.forgerock.http.protocol.Request request)
Gets the client IP address from the provided
Context and Request. |
static String |
getClientIPAddress(javax.servlet.http.HttpServletRequest request)
Returns client IP address.
|
public static String getClientIPAddress(javax.servlet.http.HttpServletRequest request)
AuthClientUtils.getClientIPAddress() to enable classes outside of the core
(Federation for example) to access this utility method.request - HttpServletRequest request to be used to obtain client's IP addresspublic static String getClientIPAddress(org.forgerock.services.context.Context context, org.forgerock.http.protocol.Request request)
Context and Request.context - the Commons Http-Framework context which will be examined to obtain the client's ip address.request - the Commons Http-Framework request which will be examined to obtain the client's ip addresspublic static String getClientIPAddress(org.forgerock.services.context.Context context)
Context.context - the Commons Http-Framework context which will be examined to obtain the client's ip address.Copyright © 2010–2023 Open Identity Platform Community. All rights reserved.