public ManualGrpcSecurityMetadataSource set ( final ServiceDescriptor service , final AccessPredicate predicate ) { requireNonNull ( service , "service" ) ; final Collection < ConfigAttribute > wrappedPredicate = wrap ( predicate ) ; for ( final MethodDescriptor < ? , ? > method : service . getMethods ( ) ) { this . accessMap . put ( method , wrappedPredicate ) ; } return this ; }
Set the given access predicate for the all methods of the given service . This will replace previously set predicates .