protected String getUserIpLimits ( Authentication auth ) { Object principal = auth . getPrincipal ( ) ; if ( principal instanceof DuracloudUserDetails ) { DuracloudUserDetails userDetails = ( DuracloudUserDetails ) principal ; return userDetails . getIpLimits ( ) ; } else { return null ; } }
Retrieves the ip limits defined for a given user