## org.autoplot.servlet.SecurityUtil

## SecurityUtil( )

## checkAllowed

checkAllowed( HttpServletRequest request ) → void

check that the person has access to this resource

### Parameters

request - a HttpServletRequest

### Returns:

void (returns nothing)
[search for examples] [view on GitHub] [view on old javadoc]

## clientId

clientId( HttpServletRequest request ) → String

return an identifier for the client, looking for 127.0.0.1 and X-Forwarded-For

### Parameters

request - a HttpServletRequest

### Returns:

a String
[search for examples] [view on GitHub] [view on old javadoc]

## whoIsTrusted

whoIsTrusted( String who ) → boolean

Return true if the address is of a domain that is trusted by the server. For example, if "X-Forwarded-For" is found in the headers, we will trust it.

### Parameters

who - the hostname or address.

### Returns:

a boolean
[search for examples] [view on GitHub] [view on old javadoc]