use of io.pravega.shared.rest.security.AuthHandlerManager in project pravega by pravega.
the class FailingSecureStreamMetaDataTests method setup.
@Override
@Before
public void setup() throws Exception {
this.authManager = new AuthHandlerManager(GRPCServerConfigImpl.builder().authorizationEnabled(true).tlsCertFile(SecurityConfigDefaults.TLS_SERVER_CERT_PATH).tlsKeyFile(SecurityConfigDefaults.TLS_SERVER_PRIVATE_KEY_PATH).userPasswordFile(SecurityConfigDefaults.AUTH_HANDLER_INPUT_PATH).port(1000).build());
ServerBuilder<?> server = ServerBuilder.forPort(TestUtils.getAvailableListenPort());
GrpcAuthHelper.registerInterceptors(authManager.getHandlerMap(), server);
super.setup();
}
Aggregations