use of org.wso2.carbon.identity.thrift.authentication.AuthenticatorServlet in project carbon-identity-framework by wso2.
the class ThriftAuthenticationServiceComponent method startThriftHttpAuthenticatorService.
private void startThriftHttpAuthenticatorService(ThriftAuthenticatorService thriftAuthenticatorService) {
// servlet based authenticator service for authentication for now.
try {
AuthenticatorService.Processor authServiceProcessor = new AuthenticatorService.Processor(new AuthenticatorServiceImpl(thriftAuthenticatorService));
TCompactProtocol.Factory inProtFactory = new TCompactProtocol.Factory();
TCompactProtocol.Factory outProtFactory = new TCompactProtocol.Factory();
getHttpServiceInstance().registerServlet("/thriftAuthenticator", new AuthenticatorServlet(authServiceProcessor, inProtFactory, outProtFactory), new Hashtable(), getHttpServiceInstance().createDefaultHttpContext());
} catch (ServletException e) {
log.error("Unable to start Thrift Authenticator Service.", e);
} catch (NamespaceException e) {
log.error("Unable to start Thrift Authenticator Service", e);
}
}
Aggregations