Create grpc interceptor pkg, move auth interceptor into it

This commit is contained in:
ghubstan 2020-12-16 15:30:40 -03:00
parent f7c1103848
commit 2572e8641d
No known key found for this signature in database
GPG key ID: E35592D6800A861E
2 changed files with 6 additions and 2 deletions

View file

@ -31,6 +31,10 @@ import java.io.UncheckedIOException;
import lombok.extern.slf4j.Slf4j;
import bisq.daemon.grpc.interceptor.PasswordAuthInterceptor;
@Singleton
@Slf4j
public class GrpcServer {

View file

@ -15,7 +15,7 @@
* along with Bisq. If not, see <http://www.gnu.org/licenses/>.
*/
package bisq.daemon.grpc;
package bisq.daemon.grpc.interceptor;
import bisq.common.config.Config;
@ -38,7 +38,7 @@ import static java.lang.String.format;
*
* @see bisq.common.config.Config#apiPassword
*/
class PasswordAuthInterceptor implements ServerInterceptor {
public class PasswordAuthInterceptor implements ServerInterceptor {
private static final String PASSWORD_KEY = "password";