public class RoleBasedAccessRateController extends Object
Constructor and Description |
---|
RoleBasedAccessRateController() |
Modifier and Type | Method and Description |
---|---|
AccessInformation |
canAccess(ThrottleContext throttleContext,
String consumerKey,
String roleID)
To check whether caller can access not not base on the controlling policy
|
public AccessInformation canAccess(ThrottleContext throttleContext, String consumerKey, String roleID) throws ThrottleException
throttleContext
- - current states of throttle - RunTime DataroleID
- - Identifier for remote caller - ex: ip or domainnameThrottleException
Copyright © 2005–2024 Apache Software Foundation. All rights reserved.