public class ThriftEntitlementServiceImpl extends Object implements EntitlementService.Iface
Constructor and Description |
---|
ThriftEntitlementServiceImpl() |
Modifier and Type | Method and Description |
---|---|
EntitledResultSetDTO |
getAllEntitlements(String identifier,
AttributeDTO[] givenAttributes,
String sessionID) |
String |
getDecision(String request,
String sessionId)
Thrift based service method that wraps the same in EntitlementService
|
String |
getDecisionByAttributes(String subject,
String resource,
String action,
List<String> environment,
String sessionID) |
EntitledResultSetDTO |
getEntitledAttributes(String subjectName,
String resourceName,
String subjectId,
String action,
boolean enableChildSearch,
String sessionID) |
static void |
init(org.wso2.carbon.identity.thrift.authentication.ThriftAuthenticatorService authenticatorService)
Init the AuthenticationService handler to be used for authentication.
|
public static void init(org.wso2.carbon.identity.thrift.authentication.ThriftAuthenticatorService authenticatorService)
authenticatorService
- ThriftAuthenticatorService
public String getDecision(String request, String sessionId) throws EntitlementException, org.apache.thrift.TException
getDecision
in interface EntitlementService.Iface
request
- : XACML requestsessionId
- : a sessionId obtained by authenticating to thrift based authentication
service.EntitlementException
org.apache.thrift.TException
public String getDecisionByAttributes(String subject, String resource, String action, List<String> environment, String sessionID) throws EntitlementException, org.apache.thrift.TException
getDecisionByAttributes
in interface EntitlementService.Iface
EntitlementException
org.apache.thrift.TException
public EntitledResultSetDTO getEntitledAttributes(String subjectName, String resourceName, String subjectId, String action, boolean enableChildSearch, String sessionID) throws EntitlementException, org.apache.thrift.TException
EntitlementException
org.apache.thrift.TException
public EntitledResultSetDTO getAllEntitlements(String identifier, AttributeDTO[] givenAttributes, String sessionID) throws EntitlementException, org.apache.thrift.TException
EntitlementException
org.apache.thrift.TException
Copyright © 2016 WSO2. All rights reserved.